mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
AAAAA ITS ON THE DOCK YESSSSS (still not fully fixed)
This commit is contained in:
parent
44c2026517
commit
72c0f1de84
4 changed files with 280 additions and 1 deletions
|
|
@ -21,6 +21,11 @@ ifdef MOZ_ARTIFACT_BUILDS
|
|||
MOZ_PKG_FATAL_WARNINGS =
|
||||
endif
|
||||
|
||||
# For macOS bundle layout, some files may be in different locations
|
||||
ifeq (bundle,$(MOZ_FS_LAYOUT))
|
||||
MOZ_PKG_FATAL_WARNINGS =
|
||||
endif
|
||||
|
||||
DEFINES += -DMOZ_APP_NAME=$(MOZ_APP_NAME) -DPREF_DIR=$(PREF_DIR)
|
||||
|
||||
ifdef MOZ_DEBUG
|
||||
|
|
@ -98,13 +103,54 @@ MOZ_PKG_MAC_DSSTORE=branding/dsstore
|
|||
MOZ_PKG_MAC_BACKGROUND=branding/background.png
|
||||
MOZ_PKG_MAC_ICON=branding/disk.icns
|
||||
MOZ_PKG_MAC_EXTRA=--symlink '/Applications:/ '
|
||||
MOZ_PKG_MAC_APPTEMPLATE=macbuild/Contents
|
||||
endif
|
||||
|
||||
INSTALL_SDK = 1
|
||||
|
||||
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||
MOZ_FS_LAYOUT = bundle
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/toolkit/mozapps/installer/signing.mk
|
||||
include $(topsrcdir)/toolkit/mozapps/installer/packager-uxp.mk
|
||||
|
||||
# For macOS bundle layout, copy files from dist/bin to the staging bundle
|
||||
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||
stage-package: $(MOZ_PKG_MANIFEST) $(MOZ_PKG_MANIFEST_DEPS)
|
||||
# First run the standard stage-package from packager-uxp.mk
|
||||
@echo "Staging macOS bundle..."
|
||||
@mkdir -p '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/MacOS'
|
||||
@mkdir -p '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources'
|
||||
# Copy binary and libraries to MacOS
|
||||
@cp -f '$(DIST)/bin/dactyloidae' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/MacOS/' || true
|
||||
@cp -f '$(DIST)/bin'/*.dylib '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/MacOS/' 2>/dev/null || true
|
||||
@cp -f '$(DIST)/bin/XUL' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/MacOS/' 2>/dev/null || true
|
||||
# Copy ICU data file
|
||||
@cp -f '$(DIST)/bin/icudt63l.dat' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
# Copy resources to Resources
|
||||
@cp -rf '$(DIST)/bin/components' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
@cp -rf '$(DIST)/bin/browser' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
@cp -rf '$(DIST)/bin/defaults' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
@cp -rf '$(DIST)/bin/chrome' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
@cp -rf '$(DIST)/bin/modules' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
@cp -rf '$(DIST)/bin/res' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
# Copy manifest files
|
||||
@cp -f '$(DIST)/bin/chrome.manifest' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
@cp -f '$(DIST)/bin/application.ini' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
@cp -f '$(DIST)/bin/platform.ini' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
@cp -f '$(DIST)/bin/dependentlibs.list' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Resources/' 2>/dev/null || true
|
||||
# Generate app metadata files from the source templates.
|
||||
@sed \
|
||||
-e 's/%MOZ_MACBUNDLE_ID%/$(MOZ_MACBUNDLE_ID)/' \
|
||||
-e 's/%APP_VERSION%/$(MOZ_APP_VERSION)/g' \
|
||||
-e 's/%MAC_APP_NAME%/$(MOZ_APP_DISPLAYNAME)/g' \
|
||||
-e 's#<string>basilisk</string>#<string>$(MOZ_APP_NAME)</string>#' \
|
||||
'$(srcdir)/macbuild/Contents/Info.plist.in' > '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/Info.plist'
|
||||
@cp -f '$(srcdir)/macbuild/Contents/PkgInfo' '$(DIST)/$(MOZ_PKG_DIR)/$(_APPNAME)/Contents/PkgInfo'
|
||||
@echo "Finished staging macOS bundle"
|
||||
endif
|
||||
|
||||
ifeq (bundle, $(MOZ_FS_LAYOUT))
|
||||
BINPATH = $(_BINPATH)
|
||||
DEFINES += -DAPPNAME='$(_APPNAME)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue