mirror of
https://git.sanhost.net/sanasol/hytale-f2p.git
synced 2026-02-26 14:51:48 -03:00
Compare commits
125 Commits
v2.2.0
...
sanasol-fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0831b3b83 | ||
|
|
5cf9fa3af4 | ||
|
|
ee4909cc72 | ||
|
|
9d63e6e971 | ||
|
|
153868fb87 | ||
|
|
743d7f2b7c | ||
|
|
759a7089c4 | ||
|
|
0a5cc3f6d7 | ||
|
|
499d9a5a6d | ||
|
|
7b2acd49b6 | ||
|
|
7b9951e72d | ||
|
|
e81a0167c1 | ||
|
|
50c04b64df | ||
|
|
28e5fa35e1 | ||
|
|
52e7eafe0b | ||
|
|
3de5c2eaa3 | ||
|
|
9c9b71bd4c | ||
|
|
c4bb15ce91 | ||
|
|
5147e1856f | ||
|
|
8719cd3138 | ||
|
|
611d436085 | ||
|
|
a21e7e4910 | ||
|
|
14a63febc1 | ||
|
|
2cdef44fec | ||
|
|
f8cf41972d | ||
|
|
ea0f87c46a | ||
|
|
a5b3fe02c8 | ||
|
|
0bb82a0b3d | ||
|
|
eccdcf223e | ||
|
|
a09b082152 | ||
|
|
f1d01ac78c | ||
|
|
bfe0156606 | ||
|
|
78e97bdbb7 | ||
|
|
769bc2054c | ||
|
|
5337441d97 | ||
|
|
12453d2dda | ||
|
|
803df90fb6 | ||
|
|
6c31c39abd | ||
|
|
b5ab8b78e8 | ||
|
|
343f7b8016 | ||
|
|
fa568fcce7 | ||
|
|
a6ecd2c167 | ||
|
|
3e1c4aef73 | ||
|
|
1c14c3f603 | ||
|
|
30a4327655 | ||
|
|
33a0e219fc | ||
|
|
fbdd9ee0cf | ||
|
|
dfe9ed2a89 | ||
|
|
22ea2f56d3 | ||
|
|
5039bcdadf | ||
|
|
4db8016a28 | ||
|
|
e0fd7e6900 | ||
|
|
93a2a98028 | ||
|
|
4775e9adbd | ||
|
|
90db069e4c | ||
|
|
baa585d6b3 | ||
|
|
a5b930a9f0 | ||
|
|
b708f4a7d7 | ||
|
|
28a4f65f21 | ||
|
|
966de83ead | ||
|
|
bc7f46cf45 | ||
|
|
534b3f1f34 | ||
|
|
a07f0f1de1 | ||
|
|
bf29112848 | ||
|
|
0e4e332dab | ||
|
|
779f6820cb | ||
|
|
4fc4d77415 | ||
|
|
de193e991f | ||
|
|
d69695e499 | ||
|
|
4fff87f221 | ||
|
|
4cd76bb96d | ||
|
|
721d287036 | ||
|
|
e491bf1a84 | ||
|
|
89f981b586 | ||
|
|
9cf504bbcc | ||
|
|
0aaf74a3db | ||
|
|
be78f67439 | ||
|
|
d0b9ae1da8 | ||
|
|
e8105cb30e | ||
|
|
e7110936d8 | ||
|
|
79456e43a6 | ||
|
|
dd2dbc6f08 | ||
|
|
c4acb32fcd | ||
|
|
fbcbafb9b5 | ||
|
|
86ed33358c | ||
|
|
9ec97f9d33 | ||
|
|
ee18455b4b | ||
|
|
a5c931b26d | ||
|
|
661a0c9eed | ||
|
|
9025800820 | ||
|
|
34ee099ae2 | ||
|
|
e56b12cd72 | ||
|
|
6bd63f5b60 | ||
|
|
663ac5f834 | ||
|
|
3edee4b4eb | ||
|
|
e5fec7c326 | ||
|
|
7d2672b684 | ||
|
|
01823729ec | ||
|
|
639a2ab1b5 | ||
|
|
6b76eb365e | ||
|
|
6fa933fece | ||
|
|
e7023dcf95 | ||
|
|
f4d966ee65 | ||
|
|
ca835a868b | ||
|
|
3a1b6039d0 | ||
|
|
7828454631 | ||
|
|
cc1c6c334c | ||
|
|
081ac926e3 | ||
|
|
75a450c9ec | ||
|
|
e426690632 | ||
|
|
78f76afe0a | ||
|
|
131de1dcd7 | ||
|
|
b39877f561 | ||
|
|
0b1b448cce | ||
|
|
aed00cd067 | ||
|
|
eff6fcd520 | ||
|
|
94d4586b97 | ||
|
|
20faf36b37 | ||
|
|
375b422c73 | ||
|
|
b668bdb45a | ||
|
|
653d4429ed | ||
|
|
17e15c17f0 | ||
|
|
b99b22e8bf | ||
|
|
9303c17e57 | ||
|
|
615ee5cadc |
76
.github/workflows/release.yml
vendored
76
.github/workflows/release.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
- name: Build Windows Packages
|
- name: Build Windows Packages
|
||||||
run: npx electron-builder --win --publish never
|
run: npx electron-builder --win --publish never
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
@@ -27,8 +27,10 @@ jobs:
|
|||||||
dist/*.exe.blockmap
|
dist/*.exe.blockmap
|
||||||
dist/latest.yml
|
dist/latest.yml
|
||||||
|
|
||||||
|
# macOS Universal build (ARM64 + x64 in single binary)
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
timeout-minutes: 120
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -37,14 +39,27 @@ jobs:
|
|||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
- name: Build macOS Packages
|
- name: Build macOS Universal Package
|
||||||
run: npx electron-builder --mac --publish never
|
env:
|
||||||
|
# Code signing
|
||||||
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||||
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
|
# Notarization (built-in electron-builder)
|
||||||
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
|
||||||
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
|
run: npx electron-builder --mac --universal --publish never
|
||||||
|
|
||||||
|
- name: List built artifacts
|
||||||
|
run: ls -la dist/
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-builds
|
name: macos-builds
|
||||||
path: |
|
path: |
|
||||||
dist/*.dmg
|
dist/*.dmg
|
||||||
dist/*.zip
|
dist/*.zip
|
||||||
|
dist/*.blockmap
|
||||||
dist/latest-mac.yml
|
dist/latest-mac.yml
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
@@ -55,7 +70,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libarchive-tools
|
sudo apt-get install -y libarchive-tools
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
@@ -64,7 +79,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Linux Packages
|
- name: Build Linux Packages
|
||||||
run: |
|
run: |
|
||||||
npx electron-builder --linux AppImage deb rpm --x64 --arm64 --publish never
|
npx electron-builder --linux AppImage deb rpm --publish never
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux-builds
|
name: linux-builds
|
||||||
@@ -84,7 +99,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install base packages
|
- name: Install base packages
|
||||||
run: |
|
run: |
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
@@ -106,11 +121,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Arch Package
|
- name: Build Arch Package
|
||||||
run: |
|
run: |
|
||||||
sudo -u builder bash << 'EOF'
|
sudo -u builder bash << 'EOFBUILD'
|
||||||
set -e
|
set -e
|
||||||
makepkg --printsrcinfo > .SRCINFO
|
makepkg --printsrcinfo > .SRCINFO
|
||||||
makepkg -sS --noconfirm
|
makepkg -s --noconfirm
|
||||||
EOF
|
EOFBUILD
|
||||||
|
|
||||||
|
- name: Fix permissions for upload
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
sudo chown -R $(id -u):$(id -g) .
|
||||||
|
|
||||||
- name: Upload Arch Package
|
- name: Upload Arch Package
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -118,16 +138,16 @@ jobs:
|
|||||||
name: arch-package
|
name: arch-package
|
||||||
path: |
|
path: |
|
||||||
*.pkg.tar.zst
|
*.pkg.tar.zst
|
||||||
*.src.tar.zst
|
|
||||||
.SRCINFO
|
.SRCINFO
|
||||||
include-hidden-files: true
|
include-hidden-files: true
|
||||||
|
|
||||||
|
# Create release with all builds
|
||||||
release:
|
release:
|
||||||
needs: [build-windows, build-macos, build-linux, build-arch]
|
needs: [build-windows, build-linux, build-arch, build-macos]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
if: |
|
||||||
startsWith(github.ref, 'refs/tags/v') ||
|
startsWith(github.ref, 'refs/tags/v') ||
|
||||||
github.ref == 'refs/heads/main' ||
|
github.ref == 'refs/heads/main' ||
|
||||||
github.event_name == 'workflow_dispatch'
|
github.event_name == 'workflow_dispatch'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -137,10 +157,29 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download Windows artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
name: windows-builds
|
||||||
|
path: artifacts/windows-builds
|
||||||
|
|
||||||
|
- name: Download Linux artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux-builds
|
||||||
|
path: artifacts/linux-builds
|
||||||
|
|
||||||
|
- name: Download Arch artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: arch-package
|
||||||
|
path: artifacts/arch-package
|
||||||
|
|
||||||
|
- name: Download macOS artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: macos-builds
|
||||||
|
path: artifacts/macos-builds
|
||||||
|
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -R artifacts
|
run: ls -R artifacts
|
||||||
@@ -157,10 +196,9 @@ jobs:
|
|||||||
artifacts/arch-package/*.pkg.tar.zst
|
artifacts/arch-package/*.pkg.tar.zst
|
||||||
artifacts/arch-package/*.src.tar.zst
|
artifacts/arch-package/*.src.tar.zst
|
||||||
artifacts/arch-package/.SRCINFO
|
artifacts/arch-package/.SRCINFO
|
||||||
artifacts/linux-builds/**/*
|
artifacts/linux-builds/*
|
||||||
artifacts/windows-builds/**/*
|
artifacts/windows-builds/*
|
||||||
artifacts/macos-builds/**/*
|
artifacts/macos-builds/*
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
|||||||
18
build/entitlements.mac.plist
Normal file
18
build/entitlements.mac.plist
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.cs.allow-jit</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.disable-library-validation</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.network.client</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.network.server</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.files.user-selected.read-write</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
799
package-lock.json
generated
799
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
57
package.json
57
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hytale-f2p-launcher",
|
"name": "hytale-f2p-launcher",
|
||||||
"version": "2.2.0",
|
"version": "2.1.2",
|
||||||
"description": "A modern, cross-platform launcher for Hytale with automatic updates and multi-client support",
|
"description": "A modern, cross-platform launcher for Hytale with automatic updates and multi-client support",
|
||||||
"homepage": "https://github.com/amiayweb/Hytale-F2P",
|
"homepage": "https://github.com/amiayweb/Hytale-F2P",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
"url": "https://github.com/Terromur"
|
"url": "https://github.com/Terromur"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Fazri Gading",
|
"name": "Fari Gading",
|
||||||
"email": "fazrigading@gmail.com",
|
"email": "fazrigading@gmail.com",
|
||||||
"url": "https://github.com/fazrigading"
|
"url": "https://github.com/fazrigading"
|
||||||
}
|
}
|
||||||
@@ -45,6 +45,7 @@
|
|||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@electron/notarize": "^2.5.0",
|
||||||
"electron": "^40.0.0",
|
"electron": "^40.0.0",
|
||||||
"electron-builder": "^26.4.0"
|
"electron-builder": "^26.4.0"
|
||||||
},
|
},
|
||||||
@@ -55,13 +56,16 @@
|
|||||||
"dotenv": "^17.2.3",
|
"dotenv": "^17.2.3",
|
||||||
"electron-updater": "^6.7.3",
|
"electron-updater": "^6.7.3",
|
||||||
"fs-extra": "^11.3.3",
|
"fs-extra": "^11.3.3",
|
||||||
"tar": "^7.5.7",
|
"tar": "^6.2.1",
|
||||||
"uuid": "^9.0.1"
|
"uuid": "^9.0.1"
|
||||||
},
|
},
|
||||||
|
"overrides": {
|
||||||
|
"tar": "$tar"
|
||||||
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.hytalef2p.launcher",
|
"appId": "com.hytalef2p.launcher",
|
||||||
"productName": "Hytale F2P Launcher",
|
"productName": "Hytale F2P Launcher",
|
||||||
"artifactName": "${name}_${version}.${ext}",
|
"artifactName": "${name}_${version}_${arch}.${ext}",
|
||||||
"directories": {
|
"directories": {
|
||||||
"output": "dist"
|
"output": "dist"
|
||||||
},
|
},
|
||||||
@@ -74,14 +78,40 @@
|
|||||||
".env"
|
".env"
|
||||||
],
|
],
|
||||||
"win": {
|
"win": {
|
||||||
"target": "nsis",
|
"target": [
|
||||||
|
{
|
||||||
|
"target": "nsis",
|
||||||
|
"arch": [
|
||||||
|
"x64",
|
||||||
|
"arm64"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"icon": "build/icon.ico"
|
"icon": "build/icon.ico"
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"target": [
|
"target": [
|
||||||
"AppImage",
|
{
|
||||||
"deb",
|
"target": "AppImage",
|
||||||
"rpm"
|
"arch": [
|
||||||
|
"x64",
|
||||||
|
"arm64"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target": "deb",
|
||||||
|
"arch": [
|
||||||
|
"x64",
|
||||||
|
"arm64"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target": "rpm",
|
||||||
|
"arch": [
|
||||||
|
"x64",
|
||||||
|
"arm64"
|
||||||
|
]
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"icon": "build/icon.png",
|
"icon": "build/icon.png",
|
||||||
"category": "Game"
|
"category": "Game"
|
||||||
@@ -102,8 +132,15 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icon": "build/icon.icns",
|
"icon": "build/icon.icns",
|
||||||
"artifactName": "${name}_${version}_${arch}.${ext}",
|
"category": "public.app-category.games",
|
||||||
"category": "public.app-category.games"
|
"hardenedRuntime": true,
|
||||||
|
"gatekeeperAssess": false,
|
||||||
|
"entitlements": "build/entitlements.mac.plist",
|
||||||
|
"entitlementsInherit": "build/entitlements.mac.plist",
|
||||||
|
"forceCodeSigning": true,
|
||||||
|
"strictVerify": true,
|
||||||
|
"type": "distribution",
|
||||||
|
"notarize": true
|
||||||
},
|
},
|
||||||
"nsis": {
|
"nsis": {
|
||||||
"oneClick": false,
|
"oneClick": false,
|
||||||
|
|||||||
92
scripts/notarize.js
Normal file
92
scripts/notarize.js
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
console.log('[Notarize] Script loaded');
|
||||||
|
|
||||||
|
let notarize;
|
||||||
|
try {
|
||||||
|
notarize = require('@electron/notarize').notarize;
|
||||||
|
console.log('[Notarize] @electron/notarize loaded successfully');
|
||||||
|
} catch (err) {
|
||||||
|
console.error('[Notarize] Failed to load @electron/notarize:', err.message);
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
// Timeout for notarization (30 minutes max)
|
||||||
|
const NOTARIZE_TIMEOUT_MS = 30 * 60 * 1000;
|
||||||
|
|
||||||
|
function withTimeout(promise, ms, message) {
|
||||||
|
return Promise.race([
|
||||||
|
promise,
|
||||||
|
new Promise((_, reject) =>
|
||||||
|
setTimeout(() => reject(new Error(message)), ms)
|
||||||
|
)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.default = async function notarizing(context) {
|
||||||
|
console.log('[Notarize] afterSign hook called');
|
||||||
|
console.log('[Notarize] Context:', JSON.stringify({
|
||||||
|
platform: context.electronPlatformName,
|
||||||
|
appOutDir: context.appOutDir,
|
||||||
|
outDir: context.outDir
|
||||||
|
}, null, 2));
|
||||||
|
|
||||||
|
const { electronPlatformName, appOutDir } = context;
|
||||||
|
|
||||||
|
// Only notarize macOS builds
|
||||||
|
if (electronPlatformName !== 'darwin') {
|
||||||
|
console.log('[Notarize] Skipping: not macOS');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if notarization is disabled via env var
|
||||||
|
if (process.env.SKIP_NOTARIZE === 'true') {
|
||||||
|
console.log('[Notarize] Skipping: SKIP_NOTARIZE=true');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check credentials
|
||||||
|
const hasAppleId = !!process.env.APPLE_ID;
|
||||||
|
const hasPassword = !!process.env.APPLE_APP_SPECIFIC_PASSWORD;
|
||||||
|
const hasTeamId = !!process.env.APPLE_TEAM_ID;
|
||||||
|
|
||||||
|
console.log('[Notarize] Credentials check:', { hasAppleId, hasPassword, hasTeamId });
|
||||||
|
|
||||||
|
if (!hasAppleId || !hasPassword || !hasTeamId) {
|
||||||
|
console.log('[Notarize] Skipping: missing credentials');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const appName = context.packager.appInfo.productFilename;
|
||||||
|
const appPath = path.join(appOutDir, `${appName}.app`);
|
||||||
|
|
||||||
|
console.log('[Notarize] Starting notarization...');
|
||||||
|
console.log('[Notarize] App path:', appPath);
|
||||||
|
console.log('[Notarize] Team ID:', process.env.APPLE_TEAM_ID);
|
||||||
|
console.log('[Notarize] Timeout:', NOTARIZE_TIMEOUT_MS / 1000, 'seconds');
|
||||||
|
|
||||||
|
try {
|
||||||
|
await withTimeout(
|
||||||
|
notarize({
|
||||||
|
appPath,
|
||||||
|
appleId: process.env.APPLE_ID,
|
||||||
|
appleIdPassword: process.env.APPLE_APP_SPECIFIC_PASSWORD,
|
||||||
|
teamId: process.env.APPLE_TEAM_ID,
|
||||||
|
}),
|
||||||
|
NOTARIZE_TIMEOUT_MS,
|
||||||
|
`Notarization timed out after ${NOTARIZE_TIMEOUT_MS / 1000} seconds`
|
||||||
|
);
|
||||||
|
console.log('[Notarize] Notarization complete!');
|
||||||
|
} catch (error) {
|
||||||
|
console.error('[Notarize] Notarization failed:', error.message);
|
||||||
|
|
||||||
|
// Don't fail the build if notarization times out or fails
|
||||||
|
// The app will still be code-signed, just not notarized
|
||||||
|
if (process.env.NOTARIZE_FAIL_ON_ERROR !== 'true') {
|
||||||
|
console.warn('[Notarize] Continuing build without notarization (set NOTARIZE_FAIL_ON_ERROR=true to fail)');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user