2021-05-14 19:07:44 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2021-07-29 19:26:12 +02:00
|
|
|
# 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.
|
2021-05-14 19:07:44 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
set -e
|
2022-08-29 17:53:08 +02:00
|
|
|
set -x
|
|
|
|
|
2022-01-28 17:10:03 +01:00
|
|
|
if ! [ -f LICENSE ] || ! [ -d llarp ]; then
|
2022-09-19 20:52:29 +02:00
|
|
|
echo "You need to run this as ./contrib/mac.sh from the top-level lokinet project directory" >&2
|
|
|
|
exit 1
|
2021-07-29 19:26:12 +02:00
|
|
|
fi
|
|
|
|
|
2022-09-19 20:52:29 +02:00
|
|
|
./contrib/mac-configure.sh "$@"
|
2022-08-29 17:53:08 +02:00
|
|
|
|
2022-09-19 20:52:29 +02:00
|
|
|
cd build-mac
|
2022-09-29 15:32:10 +02:00
|
|
|
rm -rf Lokinet\ *
|
2023-01-06 21:28:22 +01:00
|
|
|
ninja -j${JOBS:-1} dmg
|
2022-08-29 17:53:08 +02:00
|
|
|
cd ..
|
2021-07-29 19:26:12 +02:00
|
|
|
|
|
|
|
echo -e "Build complete, your app is here:\n"
|
2022-08-30 19:00:58 +02:00
|
|
|
ls -lad $(pwd)/build-mac/Lokinet\ *
|
2021-07-29 19:26:12 +02:00
|
|
|
echo ""
|