mirror of https://github.com/oxen-io/lokinet
macos CI fixes
- 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))pull/1969/head
parent
1f9779cdcd
commit
616f559761
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
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
|
||||
|
||||
mkdir -p build-mac
|
||||
cd build-mac
|
||||
cmake \
|
||||
-G Ninja \
|
||||
-DBUILD_STATIC_DEPS=ON \
|
||||
-DBUILD_LIBLOKINET=OFF \
|
||||
-DWITH_TESTS=OFF \
|
||||
-DWITH_BOOTSTRAP=OFF \
|
||||
-DNATIVE_BUILD=OFF \
|
||||
-DWITH_LTO=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DMACOS_SYSTEM_EXTENSION=ON \
|
||||
-DCODESIGN=ON \
|
||||
-DBUILD_PACKAGE=ON \
|
||||
"$@" \
|
||||
..
|
||||
|
||||
echo "cmake build configured in build-mac"
|
Loading…
Reference in New Issue