Add bundle generation
.gitignore
6 | 6 | build | |
7 | 7 | *~ | |
8 | 8 | __pycache__ | |
9 | + | run.spec |
Makefile
41 | 41 | pylupdate5 offlate/ui/*.py -ts offlate/locales/offlate_$${l}.ts ;\ | |
42 | 42 | lrelease offlate/locales/offlate_$${l}.ts ;\ | |
43 | 43 | done | |
44 | + | ||
45 | + | create-bundle: update-langs | |
46 | + | pyinstaller run.py --add-data offlate/icon.png:offlate \ | |
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` | |
49 | + | patchelf --set-rpath . dist/run/run | |
50 | + | cd dist/run; for f in *.so *.so.*; do patchelf --set-rpath . $$f; done | |
51 | + | mkdir -p dist/bin | |
52 | + | printf "#!/bin/sh\ncd \$$(dirname \$$0)/../run; exec ./run" > dist/bin/offlate | |
53 | + | chmod +x dist/bin/offlate | |
54 | + | ||
55 | + | bundle: create-bundle | |
56 | + | tar cf dist/offlate-bin.tar -C dist/ run bin | |
57 | + | gzip dist/offlate-bin.tar |
guix.scm
179 | 179 | (description "Interact with GitLab API") | |
180 | 180 | (license license:lgpl3+))) | |
181 | 181 | ||
182 | + | (define-public python-altgraph | |
183 | + | (package | |
184 | + | (name "python-altgraph") | |
185 | + | (version "0.16.1") | |
186 | + | (source | |
187 | + | (origin | |
188 | + | (method url-fetch) | |
189 | + | (uri (pypi-uri "altgraph" version)) | |
190 | + | (sha256 | |
191 | + | (base32 | |
192 | + | "034vgy3nnm58rs4a6k83m9imayxx35k0p3hr22wafyql2w035xfx")))) | |
193 | + | (build-system python-build-system) | |
194 | + | (home-page "https://altgraph.readthedocs.io") | |
195 | + | (synopsis "Python graph (network) package") | |
196 | + | (description "Python graph (network) package") | |
197 | + | (license license:expat))) | |
198 | + | ||
199 | + | (define-public python-pyinstaller | |
200 | + | (package | |
201 | + | (name "python-pyinstaller") | |
202 | + | (version "3.5") | |
203 | + | (source | |
204 | + | (origin | |
205 | + | (method url-fetch) | |
206 | + | (uri (pypi-uri "PyInstaller" version)) | |
207 | + | (sha256 | |
208 | + | (base32 | |
209 | + | "15ha3mmy4p93rpwcy2b3vcgwfsm5bq9z5yjh88ra6chk5l108xgf")))) | |
210 | + | (build-system python-build-system) | |
211 | + | (arguments | |
212 | + | `(#:tests? #f | |
213 | + | #:phases | |
214 | + | (modify-phases %standard-phases | |
215 | + | (delete 'validate-runpath)))) | |
216 | + | (propagated-inputs | |
217 | + | `(("python-altgraph" ,python-altgraph) | |
218 | + | ("python-setuptools" ,python-setuptools))) | |
219 | + | (home-page "http://www.pyinstaller.org") | |
220 | + | (synopsis | |
221 | + | "PyInstaller bundles a Python application and all its dependencies into a single package.") | |
222 | + | (description | |
223 | + | "PyInstaller bundles a Python application and all its dependencies into a single package.") | |
224 | + | (license #f))) | |
225 | + | ||
182 | 226 | (package | |
183 | 227 | (name "offlate") | |
184 | 228 | (version "0.4") | |
… | |||
207 | 251 | ("python-requests" ,python-requests) | |
208 | 252 | ("python-ruamel.yaml" ,python-ruamel.yaml) | |
209 | 253 | ("python-translation-finder" ,python-translation-finder))) | |
254 | + | (native-inputs | |
255 | + | `(("python-pyinstaller" ,python-pyinstaller))) | |
210 | 256 | (home-page | |
211 | 257 | "https://framagit.org/tyreunom/offlate") | |
212 | 258 | (synopsis |