diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-09-05 13:49:56 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-09-05 13:49:56 +0200 |
| commit | 72870f4ef00a27c35a17f300a1fa3dfaaee49a3d (patch) | |
| tree | 52cf9881efdbe7bcb243fe0fbeef9a9a12bf44cc /build.sh | |
| parent | 0f19cb8c6dfd311ed25930107af3255c86620836 (diff) | |
| parent | 1c21a9f5a1f1b2bdabb7b19462742a1fa7f0a8a4 (diff) | |
| download | mullvadvpn-72870f4ef00a27c35a17f300a1fa3dfaaee49a3d.tar.xz mullvadvpn-72870f4ef00a27c35a17f300a1fa3dfaaee49a3d.zip | |
Merge branch 'switch-to-notarytool-des-242'
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -25,6 +25,8 @@ log_header "Building Mullvad VPN $PRODUCT_VERSION" OPTIMIZE="false" # If the produced binaries should be signed (Windows + macOS only) SIGN="false" +# If the produced app and pkg should be notarized by apple (macOS only) +NOTARIZE="false" # If a macOS build should create an installer artifact working on both # Intel and Apple Silicon Macs UNIVERSAL="false" @@ -33,6 +35,7 @@ while [[ "$#" -gt 0 ]]; do case $1 in --optimize) OPTIMIZE="true";; --sign) SIGN="true";; + --notarize) NOTARIZE="true";; --universal) if [[ "$(uname -s)" != "Darwin" ]]; then log_error "--universal only works on macOS" @@ -127,6 +130,10 @@ else export CSC_IDENTITY_AUTO_DISCOVERY=false fi +if [[ "$NOTARIZE" == "true" ]]; then + NPM_PACK_ARGS+=(--notarize) +fi + if [[ "$IS_RELEASE" == "true" ]]; then log_info "Removing old Rust build artifacts..." cargo clean @@ -136,11 +143,6 @@ if [[ "$IS_RELEASE" == "true" ]]; then else # Allow dev builds to override which API server to use at runtime. CARGO_ARGS+=(--features api-override) - - if [[ "$(uname -s)" == "Darwin" ]]; then - log_info "Disabling Apple notarization of installer in dev build" - NPM_PACK_ARGS+=(--no-apple-notarization) - fi fi # Make Windows builds include a manifest in the daemon binary declaring it must |
