mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Add rules to build the OSX package.
This commit is contained in:
@@ -4,28 +4,6 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>English</string>
|
<string>English</string>
|
||||||
<key>CFBundleDocumentTypes</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleTypeExtensions</key>
|
|
||||||
<array>
|
|
||||||
<string>*</string>
|
|
||||||
</array>
|
|
||||||
<key>CFBundleTypeMIMETypes</key>
|
|
||||||
<array>
|
|
||||||
<string>text/plain</string>
|
|
||||||
</array>
|
|
||||||
<key>CFBundleTypeName</key>
|
|
||||||
<string>NSStringPboardType</string>
|
|
||||||
<key>CFBundleTypeOSTypes</key>
|
|
||||||
<array>
|
|
||||||
<string>TEXT</string>
|
|
||||||
<string>****</string>
|
|
||||||
</array>
|
|
||||||
<key>CFBundleTypeRole</key>
|
|
||||||
<string>Viewer</string>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>FluxEngine.sh</string>
|
<string>FluxEngine.sh</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
@@ -33,12 +11,12 @@
|
|||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>FluxEngine.icns</string>
|
<string>FluxEngine.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>org.fluxengine.gui</string>
|
<string>com.cowlark.fluxengine.gui</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleLocalizations</key>
|
<key>CFBundleLocalizations</key>
|
||||||
<array>
|
<array>
|
||||||
<string>cs</string><string>de</string><string>el</string><string>en</string><string>en_gb</string><string>eo</string><string>es</string><string>fr</string><string>hu</string><string>it</string><string>nl</string><string>pl</string><string>pt</string><string>ru</string>
|
<string>en</string>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>FluxEngine</string>
|
<string>FluxEngine</string>
|
||||||
|
|||||||
0
extras/FluxEngine.app.template/Contents/MacOS/FluxEngine.sh
Normal file → Executable file
0
extras/FluxEngine.app.template/Contents/MacOS/FluxEngine.sh
Normal file → Executable file
@@ -40,6 +40,35 @@ fluxengine-gui$(EXT): $(FLUXENGINE_GUI_BIN)
|
|||||||
@echo CP $@
|
@echo CP $@
|
||||||
@cp $< $@
|
@cp $< $@
|
||||||
|
|
||||||
|
ifeq ($(PLATFORM),OSX)
|
||||||
|
|
||||||
|
binaries: FluxEngine.pkg
|
||||||
|
|
||||||
|
FluxEngine.pkg: FluxEngine.app
|
||||||
|
@echo PKGBUILD $@
|
||||||
|
@pkgbuild --quiet --install-location /Applications --component $< $@
|
||||||
|
|
||||||
|
FluxEngine.app: fluxengine-gui$(EXT) $(OBJDIR)/fluxengine.icns
|
||||||
|
@echo MAKEAPP $@
|
||||||
|
@rm -rf $@
|
||||||
|
@cp -a extras/FluxEngine.app.template $@
|
||||||
|
@cp fluxengine-gui$(EXT) $@/Contents/MacOS/fluxengine-gui
|
||||||
|
@mkdir -p $@/Contents/Resources
|
||||||
|
@cp $(OBJDIR)/fluxengine.icns $@/Contents/Resources/FluxEngine.icns
|
||||||
|
@for name in `otool -L fluxengine-gui$(EXT) | tr -d '\t' | grep -v '^/System/' | grep -v '^/usr/lib/' | grep -v ':$$' | awk '{print $$1}'`; do cp "$$name" $@/Contents/Resources; done
|
||||||
|
|
||||||
|
$(OBJDIR)/fluxengine.icns: $(OBJDIR)/fluxengine.iconset
|
||||||
|
@echo ICONUTIL $@
|
||||||
|
@iconutil -c icns -o $@ $<
|
||||||
|
|
||||||
|
$(OBJDIR)/fluxengine.iconset: extras/icon.png
|
||||||
|
@echo ICONSET $@
|
||||||
|
@rm -rf $@
|
||||||
|
@mkdir -p $@
|
||||||
|
@sips -z 64 64 $< --out $@/icon_32x32@2x.png > /dev/null
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
$(warning wx-config missing, not building GUI)
|
$(warning wx-config missing, not building GUI)
|
||||||
|
|||||||
Reference in New Issue
Block a user