Update Makefile
This commit is contained in:
1 parent
4f4462da27
commit
cf4d5bd510
1 file changed
+8
-8
@@ -13,7 +13,7 @@ CODESIGN=echo
|
|||||||
CODESIGN_APP_CERT=
|
CODESIGN_APP_CERT=
|
||||||
ifeq ($(ZT_OFFICIAL_RELEASE),1)
|
ifeq ($(ZT_OFFICIAL_RELEASE),1)
|
||||||
CODESIGN=codesign
|
CODESIGN=codesign
|
||||||
CODESIGN_APP_CERT="Developer ID Application: BackOne, Inc (8ZD9JUCZ4V)"
|
CODESIGN_APP_CERT="Developer ID Application: Nexus, Inc (8ZD9JUCZ4V)"
|
||||||
CARGO_FLAGS=--release
|
CARGO_FLAGS=--release
|
||||||
CARGO_TARGET_DIR=release
|
CARGO_TARGET_DIR=release
|
||||||
else
|
else
|
||||||
@@ -64,16 +64,16 @@ mac: libui
|
|||||||
cd tray ; make -j2 zt_lib
|
cd tray ; make -j2 zt_lib
|
||||||
MACOSX_DEPLOYMENT_TARGET=10.13 cargo build $(CARGO_FLAGS) --target=aarch64-apple-darwin
|
MACOSX_DEPLOYMENT_TARGET=10.13 cargo build $(CARGO_FLAGS) --target=aarch64-apple-darwin
|
||||||
MACOSX_DEPLOYMENT_TARGET=10.13 cargo build $(CARGO_FLAGS) --target=x86_64-apple-darwin
|
MACOSX_DEPLOYMENT_TARGET=10.13 cargo build $(CARGO_FLAGS) --target=x86_64-apple-darwin
|
||||||
lipo -create target/aarch64-apple-darwin/$(CARGO_TARGET_DIR)/backone_desktop_ui target/x86_64-apple-darwin/$(CARGO_TARGET_DIR)/backone_desktop_ui -output target/$(CARGO_TARGET_DIR)/backone_desktop_ui
|
lipo -create target/aarch64-apple-darwin/$(CARGO_TARGET_DIR)/nexus_desktop_ui target/x86_64-apple-darwin/$(CARGO_TARGET_DIR)/nexus_desktop_ui -output target/$(CARGO_TARGET_DIR)/nexus_desktop_ui
|
||||||
make mac-assemble-app
|
make mac-assemble-app
|
||||||
|
|
||||||
mac-assemble-app: FORCE
|
mac-assemble-app: FORCE
|
||||||
rm -rf BackOne.app
|
rm -rf Nexus.app
|
||||||
cp -av mac-app-template/BackOne.app .
|
cp -av mac-app-template/Nexus.app .
|
||||||
mkdir -p BackOne.app/Contents/MacOS
|
mkdir -p Nexus.app/Contents/MacOS
|
||||||
cp -f target/$(CARGO_TARGET_DIR)/backone_desktop_ui BackOne.app/Contents/MacOS/BackOne
|
cp -f target/$(CARGO_TARGET_DIR)/nexus_desktop_ui Nexus.app/Contents/MacOS/Nexus
|
||||||
xattr -cr BackOne.app
|
xattr -cr Nexus.app
|
||||||
$(CODESIGN) -f --options=runtime -s $(CODESIGN_APP_CERT) BackOne.app
|
$(CODESIGN) -f --options=runtime -s $(CODESIGN_APP_CERT) Nexus.app
|
||||||
|
|
||||||
# This doesn't need to be run every time, was just used to build the initial libui.rs version.
|
# This doesn't need to be run every time, was just used to build the initial libui.rs version.
|
||||||
# The result seems to be portable across the targeted platforms so we just check it in.
|
# The result seems to be portable across the targeted platforms so we just check it in.
|
||||||
|
|||||||
Reference in new issue
Block a user