Improve bundle generation, add windows target
.gitignore
| 6 | 6 | build | |
| 7 | 7 | *~ | |
| 8 | 8 | __pycache__ | |
| 9 | - | run.spec | |
| 9 | + | offlate.spec |
Makefile
| 42 | 42 | lrelease offlate/locales/offlate_$${l}.ts ;\ | |
| 43 | 43 | done | |
| 44 | 44 | ||
| 45 | - | create-bundle: update-langs | |
| 45 | + | create-bundle-linux: update-langs | |
| 46 | 46 | pyinstaller run.py --add-data offlate/icon.png:offlate \ | |
| 47 | 47 | --add-data offlate/data.json:offlate --add-data offlate/icon.png:offlate/ui \ | |
| 48 | - | `for f in offlate/locales/*.{ts,qm}; do echo "--add-data $$f:offlate/locales"; done` | |
| 48 | + | --add-data offlate/locales:offlate/locales --add-data offlate/VERSION:offlate \ | |
| 49 | + | --windowed -n offlate | |
| 49 | 50 | patchelf --set-rpath . dist/run/run | |
| 50 | 51 | cd dist/run; for f in *.so *.so.*; do patchelf --set-rpath . $$f; done | |
| 51 | 52 | mkdir -p dist/bin | |
| 52 | 53 | printf "#!/bin/sh\ncd \$$(dirname \$$0)/../run; exec ./run" > dist/bin/offlate | |
| 53 | 54 | chmod +x dist/bin/offlate | |
| 54 | 55 | ||
| 55 | - | bundle: create-bundle | |
| 56 | + | bundle-linux: create-bundle-linux | |
| 56 | 57 | tar cf dist/offlate-bin.tar -C dist/ run bin | |
| 57 | 58 | gzip dist/offlate-bin.tar | |
| 59 | + | ||
| 60 | + | bundle-windows: update-langs | |
| 61 | + | pyinstaller run.py --add-data offlate\icon.png;offlate \ | |
| 62 | + | --add-data offlate\data.json;offlate --add-data offlate\icon.png;offlate\ui \ | |
| 63 | + | --add-data offlate\VERSION;offlate --windowed --icon offlate/icon.ico -n offlate |
offlate/icon.ico unknown status 1
Binary data |