Skip to content

Commit 23f24b9

Browse files
committed
update
1 parent 667e230 commit 23f24b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+9553
-5429
lines changed

.DS_Store

4 KB
Binary file not shown.

CreateSilentPassVPNInstaller.iss

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
; CreateSilentPassVPNInstaller.iss
2+
3+
[Setup]
4+
; --- App Info
5+
AppName=Silent-Pass-Proxy
6+
AppVersion=1.0.0
7+
AppPublisher=Your Company Name
8+
AppId={{YOUR_UNIQUE_APP_ID}}
9+
10+
; --- Installation Directories
11+
DefaultDirName={autopf}\Silent-Pass-Proxy
12+
DefaultGroupName=Silent-Pass-Proxy
13+
DisableProgramGroupPage=yes
14+
15+
; =================================================================
16+
; == 新增指令:指定安裝包的圖示文件 ==
17+
SetupIconFile=public\512.ico
18+
; =================================================================
19+
20+
; --- Output Configuration
21+
OutputDir=Output
22+
OutputBaseFilename=Silent-Pass-Proxy-Setup
23+
; --- 其他設定
24+
Compression=lzma2/ultra64
25+
SolidCompression=yes
26+
WizardStyle=modern
27+
PrivilegesRequired=admin
28+
29+
30+
; --- 簽名設定 ---
31+
; 由於我們是在Linux上透過Docker執行,而EV簽名的硬體權杖通常在Windows上,
32+
; 所以我們在這裡不簽署最終的安裝包。
33+
; 最佳做法是:先生成未簽名的安裝包,然後將其複製到Windows機器上進行最後的簽名。
34+
; SignTool=... (此處保持註解狀態)
35+
36+
37+
[Languages]
38+
Name: "english"; MessagesFile: "compiler:Default.isl"
39+
40+
41+
[Files]
42+
; --- 主要應用程式檔案 ---
43+
; 來源路徑是相對於 Inno Setup 腳本的位置。
44+
; 因為 EXE 已經簽名,所以我們 **不** 使用 'sign' 標誌。
45+
Source: "win-unpacked\*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs
46+
47+
48+
[Icons]
49+
; --- 建立捷徑 (核心需求) ---
50+
; 這是實現您參數傳遞目標的地方。
51+
; 我們將您提供的兩個參數完整地放入 Parameters 欄位。
52+
53+
; 開始功能表捷徑
54+
Name: "{group}\Silent-Pass-Proxy"; \
55+
Filename: "{app}\Silent-Pass-Proxy.exe"; \
56+
Parameters: "--ChannelPartners {#ChannelPartnersVar} --referrals {#ReferralsVar}"
57+
58+
; 桌面捷徑
59+
Name: "{commondesktop}\Silent-Pass-Proxy"; \
60+
Filename: "{app}\Silent-Pass-Proxy.exe"; \
61+
Parameters: "--ChannelPartners {#ChannelPartnersVar} --referrals {#ReferralsVar}"; \
62+
Tasks: desktopicon
63+
64+
[Tasks]
65+
; 讓使用者可以選擇是否建立桌面捷徑
66+
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:";
67+
68+
69+
[Run]
70+
; 直接寫入固定的描述文字,不再使用任何變數或常數
71+
Filename: "{app}\Silent-Pass-Proxy.exe"; Description: "Launch Silent-Pass-Proxy"; Flags: nowait postinstall skipifsilent
72+
73+
74+
[UninstallDelete]
75+
; 卸載時,確保整個應用程式目錄都被刪除
76+
Type: filesandordirs; Name: "{app}"

binding.gyp

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
'variables': {
3+
# node v0.6.x doesn't give us its build variables,
4+
# but on Unix it was only possible to use the system OpenSSL library,
5+
# so default the variable to "true", v0.8.x node and up will overwrite it.
6+
'node_shared_openssl%': 'true'
7+
},
8+
"targets": [{
9+
"target_name": "binding",
10+
"sources": [ "/usr/local/bin/node" ],
11+
"conditions": [
12+
[
13+
"target_arch=='ia32'", {
14+
"variables": {
15+
"openssl_config_path": "/private/etc/ssl/openssl.cnf"
16+
}
17+
}
18+
],
19+
[
20+
"target_arch=='x64'", {
21+
"variables": {
22+
"openssl_config_path": "/private/etc/ssl/openssl.cnf"
23+
},
24+
}
25+
],
26+
[
27+
"target_arch=='arm'", {
28+
"variables": {
29+
"openssl_config_path": "/private/etc/ssl/openssl.cnf"
30+
}
31+
}
32+
],
33+
]
34+
}]
35+
36+
}

build-tools/entitlements.mac.plist

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>com.apple.security.cs.allow-unsigned-executable-memory</key><true/>
6-
<key>com.apple.security.network.client</key><true/>
7-
<key>com.apple.security.network.server</key><true/>
8-
<key>com.apple.security.cs.allow-jit</key><true/>
5+
<key>com.apple.security.cs.allow-jit</key>
6+
<true/>
7+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
8+
<true/>
9+
<key>com.apple.security.network.client</key>
10+
<true/>
911
</dict>
1012
</plist>

build-tools/notarize.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require('dotenv').config();
22
process.env.DEBUG = 'electron-notarize*'
33
const {notarize} = require('electron-notarize');
4-
4+
// xcrun altool --list-apps -u "username" -p "password"
55
exports.default = async function notarizing(context) {
66
const {electronPlatformName, appOutDir} = context;
77
if (electronPlatformName !== 'darwin') {
@@ -13,12 +13,12 @@ exports.default = async function notarizing(context) {
1313
try {
1414
await notarize({
1515
tool: 'notarytool',
16-
appBundleId: 'app.conet.platform',
16+
appBundleId: 'CONET-Labs.CONET-Labs-SilentPass',
1717
appPath: `${appOutDir}/${appName}.app`,
1818
appleId: process.env.NOTARIZE_APPLE_ID,
1919
appleIdPassword: process.env.NOTARIZE_APPLE_PASS,
20-
ascProvider: '7M7YV9RB5V',
21-
teamId: '7M7YV9RB5V'
20+
ascProvider: '23YYTMA7YQ',
21+
teamId: '23YYTMA7YQ'
2222
});
2323
console.log(`notarize success!`)
2424
} catch (err) {

0 commit comments

Comments
 (0)