Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 7ca0efb

Browse files
committed
dev: auto detect secrets
1 parent 70b90c2 commit 7ca0efb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ At the time of writing there is no official arm64 launcher, be it third or first
8383
./build.sh
8484
```
8585

86-
- If you don't have your own secrets, set `DLauncher_EMBED_SECRETS` to `OFF`.
86+
- If you have your own secrets, make sure they are placed in a directory named `secrets`.
8787
- If you get weird Java errors, you may have to manually set your `JAVA_HOME` to the zulu8 you just installed.

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ JAVA_HOME=$(/usr/libexec/java_home -v 1.8 -a arm64) \
1313
-DLauncher_LAYOUT=mac-bundle \
1414
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 \
1515
-DLauncher_META_URL="https://minecraftmachina.github.io/meta-multimc-arm64/" \
16-
-DLauncher_EMBED_SECRETS=ON
16+
-DLauncher_EMBED_SECRETS=$(test -d secrets && echo "ON" || echo "OFF")
1717
make -C "build" -j$(sysctl -n hw.physicalcpu) install
1818
chmod -R u+w "dist/ManyMC.app"
1919
find "dist/ManyMC.app" -depth -exec codesign -f -s - {} \;

0 commit comments

Comments
 (0)