Skip to content

Commit 5068e58

Browse files
committed
fix: simplify workflow to GUI only, fix test step
1 parent f7e31a8 commit 5068e58

1 file changed

Lines changed: 26 additions & 33 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@ jobs:
2727
2828
- name: Build GUI executable
2929
run: |
30-
pyinstaller --onefile --windowed --name=pixelstitchifier-gui --add-data="src/pixelstitchifier/dmc_colors.csv;src/pixelstitchifier" --hidden-import=PIL._tkinter_finder --hidden-import=cv2 --hidden-import=sklearn --hidden-import=numpy --collect-all=PIL --collect-all=cv2 --collect-all=sklearn pixelstitchifier_gui.py
30+
pyinstaller --onefile --windowed --name=pixelstitchifier-gui --add-data="src/pixelstitchifier/dmc_colors.csv;src/pixelstitchifier" pixelstitchifier_gui.py
3131
32-
- name: Build CLI executable
32+
- name: Test GUI executable
3333
run: |
34-
pyinstaller --onefile --name=pixelstitchifier --add-data="src/pixelstitchifier/dmc_colors.csv;src/pixelstitchifier" --hidden-import=PIL._tkinter_finder --hidden-import=cv2 --hidden-import=sklearn --hidden-import=numpy --collect-all=PIL --collect-all=cv2 --collect-all=sklearn pixelstitchifier_main.py
35-
36-
- name: Test executables
37-
run: |
38-
dist\stitchify.exe --help
34+
if (Test-Path dist\pixelstitchifier-gui.exe) {
35+
Write-Host " GUI executable built successfully"
36+
Get-Item dist\pixelstitchifier-gui.exe
37+
} else {
38+
Write-Error "GUI executable not found!"
39+
exit 1
40+
}
3941
4042
- name: Create release archives
4143
run: |
4244
mkdir release
4345
copy dist\pixelstitchifier-gui.exe release\
44-
copy dist\stitchify.exe release\
4546
echo "Release built successfully!" > release\README.txt
46-
echo "GUI: Double-click pixelstitchifier-gui.exe" >> release\README.txt
47-
echo "CLI: Run stitchify.exe from Command Prompt" >> release\README.txt
47+
echo "Double-click pixelstitchifier-gui.exe to launch" >> release\README.txt
4848
4949
- name: Upload artifacts
5050
uses: actions/upload-artifact@v4
@@ -58,48 +58,41 @@ jobs:
5858
with:
5959
files: |
6060
dist/pixelstitchifier-gui.exe
61-
dist/stitchify.exe
6261
body: |
6362
# pixelstitchifier Windows Release
6463
6564
**For Windows users - no Python installation required!**
6665
67-
## Downloads
66+
## Download
6867
69-
- **pixelstitchifier-gui.exe** - Graphical interface (recommended for most users)
70-
- Just double-click and use the point-and-click interface
68+
**pixelstitchifier-gui.exe** - Graphical interface for creating cross-stitch patterns
7169
72-
- **stitchify.exe** - Command-line interface (for advanced users)
73-
- Run from Command Prompt: `stitchify.exe image.jpg --dmc --pixelate`
70+
## How to Use
7471
75-
## Usage
76-
77-
### GUI Version (Easy!)
7872
1. Download `pixelstitchifier-gui.exe`
79-
2. Double-click to launch
73+
2. Double-click to launch the application
8074
3. Click "Select Image" and choose your photo
81-
4. Check options (DMC matching is recommended)
82-
5. Click "Generate Pattern"
83-
6. Done! Pattern saved in same folder as your image
84-
85-
### CLI Version (Power Users)
86-
```cmd
87-
stitchify.exe photo.jpg --dmc --pixelate --preset photo
88-
```
75+
4. Check "Use DMC color matching" (recommended)
76+
5. Optionally check "Convert to pixel art" for photos
77+
6. Click "Generate Pattern"
78+
7. Your pattern will be saved in the same folder as your image!
8979
9080
## First Run Warning
81+
9182
Windows Defender SmartScreen may show a warning because the .exe isn't code-signed:
9283
1. Click "More info"
9384
2. Click "Run anyway"
9485
95-
This is normal for unsigned executables and safe to proceed.
86+
This is normal for unsigned executables and completely safe.
9687
9788
## Features
98-
- 🎨 Convert photos to pixel art
99-
- 🧵 Automatic DMC thread color matching
100-
- 📐 Professional cross-stitch patterns
89+
90+
- 🎨 Convert photos to pixel art cross-stitch patterns
91+
- 🧵 Automatic DMC thread color matching (454 colors)
92+
- 📐 Professional pattern generation
10193
- 💾 Save intermediate pixelated images
10294
- 🎯 Quality presets for different image types
95+
96+
Made with ❤️ for Andrea
10397
env:
10498
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105-

0 commit comments

Comments
 (0)