|
58 | 58 | if config.osx: |
59 | 59 | simplerule( |
60 | 60 | name="fluxengine_pkg", |
61 | | - ins=[".+fluxengine_app"], |
62 | | - outs=["=FluxEngine.pkg"], |
63 | | - commands=[ |
64 | | - "pkgbuild --quiet --install-location /Applications --component $[ins[0]] $[outs[0]]" |
65 | | - ], |
66 | | - label="PKGBUILD", |
67 | | - ) |
68 | | - |
69 | | - simplerule( |
70 | | - name="fluxengine_app", |
71 | 61 | ins=[ |
72 | 62 | ".+gui", |
73 | 63 | "extras+fluxengine_icns", |
74 | | - "extras/FluxEngine.app.template/", |
| 64 | + "extras+fluxengine_template", |
75 | 65 | ], |
76 | | - outs=["=FluxEngine.app"], |
| 66 | + outs=["=FluxEngine.pkg"], |
77 | 67 | commands=[ |
78 | 68 | "rm -rf $[outs[0]]", |
79 | | - "cp -a $[ins[2]] $[outs[0]]", |
80 | | - "touch $[outs[0]]", |
81 | | - "cp $[ins[0]] $[outs[0]]/Contents/MacOS/fluxengine-gui", |
82 | | - "mkdir -p $[outs[0]]/Contents/Resources", |
83 | | - "cp $[ins[1]] $[outs[0]]/Contents/Resources/FluxEngine.icns", |
84 | | - "dylibbundler -of -x $[outs[0]]/Contents/MacOS/fluxengine-gui -b -d $[outs[0]]/Contents/libs -cd > /dev/null", |
85 | | - "cp $$(brew --prefix wxwidgets)/README.md $[outs[0]]/Contents/libs/wxWidgets.md", |
86 | | - "cp $$(brew --prefix protobuf)/LICENSE $[outs[0]]/Contents/libs/protobuf.txt", |
87 | | - "cp $$(brew --prefix fmt)/LICENSE* $[outs[0]]/Contents/libs/fmt.rst", |
88 | | - "cp $$(brew --prefix libpng)/LICENSE $[outs[0]]/Contents/libs/libpng.txt", |
89 | | - "cp $$(brew --prefix libjpeg)/README $[outs[0]]/Contents/libs/libjpeg.txt", |
90 | | - "cp $$(brew --prefix abseil)/LICENSE $[outs[0]]/Contents/libs/abseil.txt", |
91 | | - "cp $$(brew --prefix libtiff)/LICENSE.md $[outs[0]]/Contents/libs/libtiff.txt", |
92 | | - "cp $$(brew --prefix zstd)/LICENSE $[outs[0]]/Contents/libs/zstd.txt", |
| 69 | + "unzip -q $[ins[2]]", # creates FluxEngine.app |
| 70 | + "cp $[ins[0]] FluxEngine.app/Contents/MacOS/fluxengine-gui", |
| 71 | + "mkdir -p FluxEngine.app/Contents/Resources", |
| 72 | + "cp $[ins[1]] FluxEngine.app/Contents/Resources/FluxEngine.icns", |
| 73 | + "dylibbundler -of -x FluxEngine.app/Contents/MacOS/fluxengine-gui -b -d FluxEngine.app/Contents/libs -cd > /dev/null", |
| 74 | + "cp $$(brew --prefix wxwidgets)/README.md FluxEngine.app/Contents/libs/wxWidgets.md", |
| 75 | + "cp $$(brew --prefix protobuf)/LICENSE FluxEngine.app/Contents/libs/protobuf.txt", |
| 76 | + "cp $$(brew --prefix fmt)/LICENSE* FluxEngine.app/Contents/libs/fmt.rst", |
| 77 | + "cp $$(brew --prefix libpng)/LICENSE FluxEngine.app/Contents/libs/libpng.txt", |
| 78 | + "cp $$(brew --prefix libjpeg)/README FluxEngine.app/Contents/libs/libjpeg.txt", |
| 79 | + "cp $$(brew --prefix abseil)/LICENSE FluxEngine.app/Contents/libs/abseil.txt", |
| 80 | + "cp $$(brew --prefix libtiff)/LICENSE.md FluxEngine.app/Contents/libs/libtiff.txt", |
| 81 | + "cp $$(brew --prefix zstd)/LICENSE FluxEngine.app/Contents/libs/zstd.txt", |
| 82 | + "pkgbuild --quiet --install-location /Applications --component FluxEngine.app $[outs[0]]", |
93 | 83 | ], |
94 | 84 | label="MKAPP", |
95 | 85 | ) |
0 commit comments