refactor progress
38
fluxer_desktop/build_resources/entitlements.mac.canary.plist
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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>
|
||||
<!-- Required for Electron on arm64 -->
|
||||
<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/>
|
||||
|
||||
<!-- Microphone: need BOTH audio-input (hardened runtime) AND microphone (sandbox) -->
|
||||
<key>com.apple.security.device.audio-input</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.microphone</key>
|
||||
<true/>
|
||||
|
||||
<!-- Camera -->
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
|
||||
<!-- Network -->
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.server</key>
|
||||
<true/>
|
||||
|
||||
<!-- Passkeys: application identifier and associated domains (restricted entitlements) -->
|
||||
<key>com.apple.application-identifier</key>
|
||||
<string>3G5837T29K.app.fluxer.canary</string>
|
||||
|
||||
<key>com.apple.developer.associated-domains</key>
|
||||
<array>
|
||||
<string>webcredentials:web.canary.fluxer.app</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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>
|
||||
<!-- Required for Electron on arm64 -->
|
||||
<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/>
|
||||
|
||||
<!-- Microphone: need BOTH audio-input (hardened runtime) AND microphone (sandbox) -->
|
||||
<key>com.apple.security.device.audio-input</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.microphone</key>
|
||||
<true/>
|
||||
|
||||
<!-- Camera -->
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
|
||||
<!-- Network -->
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.server</key>
|
||||
<true/>
|
||||
|
||||
<!-- NOTE: No restricted entitlements (associated-domains, application-identifier) here.
|
||||
This file is for helper apps/frameworks which don't need passkey capabilities. -->
|
||||
</dict>
|
||||
</plist>
|
||||
39
fluxer_desktop/build_resources/entitlements.mac.stable.plist
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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>
|
||||
<!-- Required for Electron on arm64 -->
|
||||
<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/>
|
||||
|
||||
<!-- Microphone: need BOTH audio-input (hardened runtime) AND microphone (sandbox) -->
|
||||
<key>com.apple.security.device.audio-input</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.microphone</key>
|
||||
<true/>
|
||||
|
||||
<!-- Camera -->
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
|
||||
<!-- Network -->
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.server</key>
|
||||
<true/>
|
||||
|
||||
<!-- Passkeys: application identifier and associated domains (restricted entitlements) -->
|
||||
<key>com.apple.application-identifier</key>
|
||||
<string>3G5837T29K.app.fluxer</string>
|
||||
|
||||
<key>com.apple.developer.associated-domains</key>
|
||||
<array>
|
||||
<string>webcredentials:fluxer.app</string>
|
||||
<string>webcredentials:web.fluxer.app</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
fluxer_desktop/build_resources/icons-canary/1024x1024.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/128x128.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/128x128@2x.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/16x16.png
Normal file
|
After Width: | Height: | Size: 557 B |
BIN
fluxer_desktop/build_resources/icons-canary/24x24.png
Normal file
|
After Width: | Height: | Size: 865 B |
BIN
fluxer_desktop/build_resources/icons-canary/256x256.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/32x32.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/48x48.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/512x512.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/64x64.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="633" height="512" viewBox="0 0 633 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M46.3631 210.286C19.4771 210.286 -2.98429 188.554 0.324514 161.87C3.90111 133.034 11.3051 108.486 22.5371 88.228C39.9071 57.448 62.4611 35.048 90.1931 21.028C118.231 7.01002 147.793 0 178.879 0C209.965 0 238.155 7.01002 263.451 21.028C289.051 34.742 318.765 55.772 352.593 84.114C375.451 103.314 393.431 117.028 406.537 125.258C419.945 133.18 434.879 137.142 451.337 137.142C477.851 137.142 498.727 127.696 513.965 108.8C521.231 99.79 526.661 88.77 530.255 75.74C537.627 49.008 558.305 25.6 586.033 25.6C612.817 25.6 635.309 47.078 632.223 73.684C628.861 102.664 621.441 127.322 609.965 147.658C592.593 178.438 569.889 200.838 541.851 214.858C513.813 228.876 484.251 235.886 453.165 235.886C422.079 235.886 393.737 229.334 368.137 216.228C342.537 202.82 312.975 181.334 279.451 151.772C257.507 132.572 239.679 119.01 225.965 111.086C212.251 102.858 197.165 98.742 180.707 98.742C156.021 98.742 135.603 107.276 119.451 124.342C111.043 133.226 104.947 145.246 101.165 160.404C94.4911 187.138 73.9191 210.286 46.3631 210.286ZM46.3631 486.4C19.4771 486.4 -2.98429 464.668 0.324514 437.986C3.90111 409.148 11.3051 384.6 22.5371 364.342C39.9071 333.562 62.4611 311.162 90.1931 297.142C118.231 283.124 147.793 276.114 178.879 276.114C209.965 276.114 238.155 283.124 263.451 297.142C289.051 310.858 318.765 331.886 352.593 360.228C375.451 379.428 393.431 393.142 406.537 401.372C419.945 409.296 434.879 413.258 451.337 413.258C477.851 413.258 498.727 403.81 513.965 384.914C521.231 375.904 526.661 364.884 530.255 351.854C537.627 325.122 558.305 301.714 586.033 301.714C612.817 301.714 635.309 323.194 632.223 349.798C628.861 378.778 621.441 403.436 609.965 423.772C592.593 454.552 569.889 476.952 541.851 490.972C513.813 504.99 484.251 512 453.165 512C422.079 512 393.737 505.448 368.137 492.342C342.537 478.934 312.975 457.448 279.451 427.886C257.507 408.686 239.679 395.124 225.965 387.2C212.251 378.972 197.165 374.858 180.707 374.858C156.021 374.858 135.603 383.39 119.451 400.458C111.043 409.34 104.947 421.36 101.165 436.518C94.4911 463.252 73.9191 486.4 46.3631 486.4Z" fill="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"fill": {
|
||||
"solid": "display-p3:0.95215,0.66553,0.23462,1.00000"
|
||||
},
|
||||
"groups": [
|
||||
{
|
||||
"layers": [
|
||||
{
|
||||
"image-name": "Vector.svg",
|
||||
"name": "Vector"
|
||||
}
|
||||
],
|
||||
"shadow": {
|
||||
"kind": "neutral",
|
||||
"opacity": 0.5
|
||||
},
|
||||
"translucency": {
|
||||
"enabled": true,
|
||||
"value": 0.5
|
||||
}
|
||||
}
|
||||
],
|
||||
"supported-platforms": {
|
||||
"circles": ["watchOS"],
|
||||
"squares": "shared"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/Square30x30Logo.png
Normal file
|
After Width: | Height: | Size: 521 B |
|
After Width: | Height: | Size: 4.5 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/Square44x44Logo.png
Normal file
|
After Width: | Height: | Size: 701 B |
BIN
fluxer_desktop/build_resources/icons-canary/Square71x71Logo.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/Square89x89Logo.png
Normal file
|
After Width: | Height: | Size: 883 B |
BIN
fluxer_desktop/build_resources/icons-canary/StoreLogo.png
Normal file
|
After Width: | Height: | Size: 805 B |
BIN
fluxer_desktop/build_resources/icons-canary/_compiled/Assets.car
Normal file
@@ -0,0 +1,5 @@
|
||||
<?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/>
|
||||
</plist>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?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>CFBundleIconFile</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIconName</key>
|
||||
<string>AppIcon</string>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-1.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-10.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-11.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-2.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-3.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-4.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-5.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-6.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-7.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-8.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/badges/badge-9.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/icon.ico
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
fluxer_desktop/build_resources/icons-canary/icon.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/1024x1024.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/128x128.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/128x128@2x.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/16x16.png
Normal file
|
After Width: | Height: | Size: 676 B |
BIN
fluxer_desktop/build_resources/icons-stable/24x24.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/256x256.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/32x32.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/48x48.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/512x512.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/64x64.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg width="633" height="512" viewBox="0 0 633 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M46.3631 210.286C19.4771 210.286 -2.98429 188.554 0.324514 161.87C3.90111 133.034 11.3051 108.486 22.5371 88.228C39.9071 57.448 62.4611 35.048 90.1931 21.028C118.231 7.01002 147.793 0 178.879 0C209.965 0 238.155 7.01002 263.451 21.028C289.051 34.742 318.765 55.772 352.593 84.114C375.451 103.314 393.431 117.028 406.537 125.258C419.945 133.18 434.879 137.142 451.337 137.142C477.851 137.142 498.727 127.696 513.965 108.8C521.231 99.79 526.661 88.77 530.255 75.74C537.627 49.008 558.305 25.6 586.033 25.6C612.817 25.6 635.309 47.078 632.223 73.684C628.861 102.664 621.441 127.322 609.965 147.658C592.593 178.438 569.889 200.838 541.851 214.858C513.813 228.876 484.251 235.886 453.165 235.886C422.079 235.886 393.737 229.334 368.137 216.228C342.537 202.82 312.975 181.334 279.451 151.772C257.507 132.572 239.679 119.01 225.965 111.086C212.251 102.858 197.165 98.742 180.707 98.742C156.021 98.742 135.603 107.276 119.451 124.342C111.043 133.226 104.947 145.246 101.165 160.404C94.4911 187.138 73.9191 210.286 46.3631 210.286ZM46.3631 486.4C19.4771 486.4 -2.98429 464.668 0.324514 437.986C3.90111 409.148 11.3051 384.6 22.5371 364.342C39.9071 333.562 62.4611 311.162 90.1931 297.142C118.231 283.124 147.793 276.114 178.879 276.114C209.965 276.114 238.155 283.124 263.451 297.142C289.051 310.858 318.765 331.886 352.593 360.228C375.451 379.428 393.431 393.142 406.537 401.372C419.945 409.296 434.879 413.258 451.337 413.258C477.851 413.258 498.727 403.81 513.965 384.914C521.231 375.904 526.661 364.884 530.255 351.854C537.627 325.122 558.305 301.714 586.033 301.714C612.817 301.714 635.309 323.194 632.223 349.798C628.861 378.778 621.441 403.436 609.965 423.772C592.593 454.552 569.889 476.952 541.851 490.972C513.813 504.99 484.251 512 453.165 512C422.079 512 393.737 505.448 368.137 492.342C342.537 478.934 312.975 457.448 279.451 427.886C257.507 408.686 239.679 395.124 225.965 387.2C212.251 378.972 197.165 374.858 180.707 374.858C156.021 374.858 135.603 383.39 119.451 400.458C111.043 409.34 104.947 421.36 101.165 436.518C94.4911 463.252 73.9191 486.4 46.3631 486.4Z" fill="white"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"fill": {
|
||||
"solid": "display-p3:0.27100,0.25562,0.81934,1.00000"
|
||||
},
|
||||
"groups": [
|
||||
{
|
||||
"layers": [
|
||||
{
|
||||
"fill": "automatic",
|
||||
"image-name": "Vector.svg",
|
||||
"name": "Vector"
|
||||
}
|
||||
],
|
||||
"shadow": {
|
||||
"kind": "neutral",
|
||||
"opacity": 0.5
|
||||
},
|
||||
"translucency": {
|
||||
"enabled": true,
|
||||
"value": 0.5
|
||||
}
|
||||
}
|
||||
],
|
||||
"supported-platforms": {
|
||||
"circles": ["watchOS"],
|
||||
"squares": "shared"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/Square30x30Logo.png
Normal file
|
After Width: | Height: | Size: 624 B |
|
After Width: | Height: | Size: 5.1 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/Square44x44Logo.png
Normal file
|
After Width: | Height: | Size: 807 B |
BIN
fluxer_desktop/build_resources/icons-stable/Square71x71Logo.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/Square89x89Logo.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/StoreLogo.png
Normal file
|
After Width: | Height: | Size: 930 B |
BIN
fluxer_desktop/build_resources/icons-stable/_compiled/Assets.car
Normal file
@@ -0,0 +1,5 @@
|
||||
<?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/>
|
||||
</plist>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?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>CFBundleIconFile</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIconName</key>
|
||||
<string>AppIcon</string>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-1.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-10.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-11.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-2.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-3.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-4.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-5.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-6.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-7.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-8.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/badges/badge-9.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/icon.ico
Normal file
|
After Width: | Height: | Size: 112 KiB |
BIN
fluxer_desktop/build_resources/icons-stable/icon.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
52
fluxer_desktop/build_resources/notarize.js
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright (C) 2026 Fluxer Contributors
|
||||
*
|
||||
* This file is part of Fluxer.
|
||||
*
|
||||
* Fluxer is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Fluxer is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
const {notarize} = require('@electron/notarize');
|
||||
|
||||
exports.default = async function notarizing(context) {
|
||||
const {electronPlatformName, appOutDir} = context;
|
||||
|
||||
if (electronPlatformName !== 'darwin') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!process.env.APPLE_ID || !process.env.APPLE_APP_SPECIFIC_PASSWORD || !process.env.APPLE_TEAM_ID) {
|
||||
console.log('Skipping notarization: Apple credentials not set');
|
||||
return;
|
||||
}
|
||||
|
||||
const appName = context.packager.appInfo.productFilename;
|
||||
const appPath = `${appOutDir}/${appName}.app`;
|
||||
|
||||
console.log(`Notarizing ${appPath}...`);
|
||||
|
||||
try {
|
||||
await notarize({
|
||||
tool: 'notarytool',
|
||||
appPath,
|
||||
appleId: process.env.APPLE_ID,
|
||||
appleIdPassword: process.env.APPLE_APP_SPECIFIC_PASSWORD,
|
||||
teamId: process.env.APPLE_TEAM_ID,
|
||||
});
|
||||
console.log('Notarization complete');
|
||||
} catch (error) {
|
||||
console.error('Notarization failed:', error);
|
||||
throw error;
|
||||
}
|
||||
};
|
||||