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