Skip to content

Commit eeecd99

Browse files
committed
refactor!: remove executable packaging, distribute as source code only
BREAKING CHANGE: No longer distributing pre-built executables. Users must now run from source using Python and uv package manager. Changes: - Remove PyInstaller .spec files for all platforms - Replace build-release.yml with simplified release.yml (changelog only) - Update README.md installation instructions (source code only) - Simplify CONTRIBUTING.md release process documentation - Remove certifi compatibility code from image_downloader.py - Bump version to 2.0.0 (major breaking change) Migration guide: Users should clone the repository and run: uv sync && uv run main.py See README.md for detailed installation instructions.
1 parent 3babd0b commit eeecd99

10 files changed

Lines changed: 147 additions & 422 deletions

.github/workflows/build-release.yml

Lines changed: 0 additions & 157 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Trigger when pushing tags like v1.0.0
7+
workflow_dispatch: # Allow manual trigger
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
test:
14+
uses: ./.github/workflows/test.yml # Reuse the test workflow
15+
16+
release:
17+
name: Create Release
18+
runs-on: ubuntu-latest
19+
needs: test # Only create release if tests pass
20+
if: startsWith(github.ref, 'refs/tags/v')
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0 # Fetch all history for changelog generation
27+
28+
- name: Get version from tag
29+
id: get_version
30+
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
31+
32+
- name: Generate changelog with git-cliff
33+
uses: orhun/git-cliff-action@v4
34+
with:
35+
config: cliff.toml
36+
args: --current --strip all
37+
env:
38+
OUTPUT: CHANGELOG.md
39+
40+
- name: Prepare release body
41+
id: release_body
42+
run: |
43+
cat > RELEASE_BODY.md << 'EOF'
44+
## 📦 Installation
45+
46+
This project is distributed as source code. To install and run:
47+
48+
```bash
49+
# Clone the repository
50+
git clone https://github.com/${{ github.repository }}.git
51+
cd ptcg-placeholder
52+
53+
# Install dependencies
54+
uv sync
55+
56+
# Run the application
57+
uv run main.py
58+
```
59+
60+
See the [README](https://github.com/${{ github.repository }}#readme) for detailed installation instructions.
61+
62+
## 📝 What's Changed
63+
64+
EOF
65+
cat CHANGELOG.md >> RELEASE_BODY.md
66+
cat >> RELEASE_BODY.md << 'EOF'
67+
68+
## 📖 Documentation
69+
70+
- **[README](https://github.com/${{ github.repository }}#readme)** - Installation and usage guide
71+
- **[Contributing Guide](https://github.com/${{ github.repository }}/blob/master/CONTRIBUTING.md)** - For developers
72+
73+
---
74+
75+
**⚠️ Legal Notice**: Fan-made tool for personal use only. Not affiliated with Nintendo/The Pokemon Company.
76+
EOF
77+
78+
- name: Create Release
79+
uses: softprops/action-gh-release@v1
80+
with:
81+
name: Pokemon Card Generator ${{ steps.get_version.outputs.VERSION }}
82+
body_path: RELEASE_BODY.md
83+
draft: false
84+
prerelease: false
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)