mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
616f559761
- Split up mac.sh into a configure + build scripts (like Windows). - Don't attempt to build the 'package' target in CI: apparently you have to have a logged in user at the GUI in order to build a .dmg because being obtuse is the Apple way. - Upload the raw Lokinet unsigned app in a .tar.xz, rather than dmg, because of the above. - make mac.sh respect JOBS (pun not intended (but still good))
27 lines
624 B
Bash
Executable File
27 lines
624 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Build the shit on mac
|
|
#
|
|
# You will generally need to add: -DCODESIGN_APP=... to make this work, and (unless you are a
|
|
# lokinet team member) will need to pay Apple money for your own team ID and arse around with
|
|
# provisioning profiles. See macos/README.txt.
|
|
#
|
|
|
|
set -e
|
|
set -x
|
|
|
|
if ! [ -f LICENSE ] || ! [ -d llarp ]; then
|
|
echo "You need to run this as ./contrib/mac.sh from the top-level lokinet project directory" >&2
|
|
exit 1
|
|
fi
|
|
|
|
./contrib/mac-configure.sh "$@"
|
|
|
|
cd build-mac
|
|
ninja -j${JOBS:-1} package
|
|
cd ..
|
|
|
|
echo -e "Build complete, your app is here:\n"
|
|
ls -lad $(pwd)/build-mac/Lokinet\ *
|
|
echo ""
|