Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
146 lines (146 loc) · 6.48 KB
/
Copy pathpackage.json
File metadata and controls
146 lines (146 loc) · 6.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "codexauth-switch",
"version": "0.1.76",
"private": true,
"description": "Local Windows and macOS account switcher for Codex App.",
"author": "GboyCode",
"license": "MIT",
"keywords": [
"codex",
"codex-app",
"openai-codex",
"account-switcher",
"multi-account",
"auth-json",
"windows",
"macos",
"electron",
"dpapi",
"quota",
"token-usage",
"local-first"
],
"repository": {
"type": "git",
"url": "git+https://github.com/GboyCode/CodexAuth.git"
},
"bugs": {
"url": "https://github.com/GboyCode/CodexAuth/issues"
},
"homepage": "https://github.com/GboyCode/CodexAuth#readme",
"main": "src/main.js",
"scripts": {
"site:dev": "node scripts/site-dev.mjs",
"site:build": "npm --prefix site run build",
"site:validate": "npm --prefix site run validate",
"site:ui:validate": "npm run site:build && electron scripts/validate-website-interactions.js",
"glass:validate": "node scripts/validate-glass.js",
"widget:validate": "electron scripts/validate-widget-interactions.js",
"panel:validate": "electron scripts/validate-panel-interactions.js",
"i18n:validate": "node scripts/validate-i18n.js",
"start": "npm run icon:app && electron .",
"dev": "npm run icon:app && electron .",
"dev:hidden": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts\\start-dev-hidden.ps1",
"lint": "node --check src/main.js && node --check src/platform-support.js && node --check src/codex-config.js && node --check src/preload.js && node --check src/quota/constants.js && node --check src/quota/token-math.js && node --check src/quota/usage-math.js && node --check src/quota/local-data-cache.js && node --check src/ui/shared-quota.js && node --check src/ui/app.js && node --check src/ui/widget.js && node --check src/quota/local-records.js && node --check src/quota/local-estimate.js && node --check src/account-recovery.js && node --check src/quota/browser-reset-cache.js && node --check src/portable-credentials.js && node --check src/github-updates.js && node --check src/ui/updates.js && node --check src/auto-recovery.js && node --check src/codex-desktop-bridge.js && node --check src/recovery-countdown.js && node --check src/ui/recovery-countdown.js && node --check src/codex-goals.js && node --check src/account-login.js && node --check src/ui/glass.js && node --check src/quota/online-accounts.js && node --check src/quota/official-estimate.js",
"codex-config:validate": "node scripts/validate-codex-config.js",
"platform:validate": "node scripts/validate-platform-support.js",
"quota:validate": "node scripts/validate-quota-estimate.js",
"usage:validate": "node scripts/validate-usage-scope.js",
"icon:app": "electron scripts/generate-icon.js && node scripts/validate-icon-assets.js",
"icon:validate": "electron scripts/validate-icon-rendering.js --force-device-scale-factor=1 && electron scripts/validate-icon-rendering.js --force-device-scale-factor=2",
"icon:win": "npm run icon:app",
"sidebar:win": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts\\generate-installer-sidebar.ps1",
"pack:win": "set CSC_IDENTITY_AUTO_DISCOVERY=false&& npm run icon:app && npm run sidebar:win && node scripts/prepare-builder.js && electron-builder --win nsis --x64 --publish never",
"pack:mac": "npm run icon:app && electron-builder --mac --x64 --arm64 --publish never",
"local-data:validate": "node scripts/validate-local-data.js && node scripts/validate-usage-reading.js && node scripts/validate-desktop-quota.js",
"browser-cache:validate": "node scripts/validate-browser-reset-cache.js",
"startup:validate": "node scripts/validate-startup.js",
"portable:validate": "node scripts/validate-portable-credentials.js",
"account-safety:validate": "node scripts/validate-process-guard.js && node scripts/validate-account-safety.js",
"account-login:validate": "node scripts/validate-account-login.js",
"updates:validate": "node scripts/validate-github-updates.js && node scripts/validate-message-dialog.js",
"auto-recovery:validate": "node scripts/validate-auto-recovery.js && node scripts/validate-goals.js && node scripts/validate-recovery-countdown.js",
"online-accounts:validate": "node scripts/validate-online-accounts.js && node scripts/validate-reset-credits.js",
"official-estimate:validate": "node scripts/validate-official-estimate.js",
"subscription:validate": "node scripts/validate-subscription.js"
},
"devDependencies": {
"electron": "^39.8.10",
"electron-builder": "^26.8.1"
},
"build": {
"appId": "local.codexauth.switch",
"productName": "CodexAuth Switch",
"directories": {
"buildResources": "build",
"output": "release"
},
"toolsets": {
"winCodeSign": "1.0.0"
},
"afterPack": "scripts/after-pack.js",
"files": [
"src/**/*",
"README.md",
"README.en.md",
"docs/assets/**/*",
"package.json",
"!scripts/**/*",
"!debug.log"
],
"asar": true,
"win": {
"icon": "src/ui/assets/codex-color.ico",
"fileAssociations": [
{
"ext": "codexauth",
"name": "CodexAuth.Credential",
"description": "CodexAuth 加密凭证",
"icon": "src/ui/assets/codex-color.ico",
"role": "Viewer"
}
],
"signAndEditExecutable": false,
"target": [
"nsis"
]
},
"mac": {
"icon": "src/ui/assets/codex-color.png",
"fileAssociations": [
{
"ext": "codexauth",
"name": "CodexAuth.Credential",
"description": "CodexAuth 加密凭证",
"role": "Viewer"
}
],
"category": "public.app-category.utilities",
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
}
],
"artifactName": "CodexAuthSwitch-${version}-${arch}.${ext}"
},
"nsis": {
"include": "build/installer.nsh",
"oneClick": false,
"warningsAsErrors": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "CodexAuth Switch",
"installerIcon": "src/ui/assets/codex-color.ico",
"uninstallerIcon": "src/ui/assets/codex-color.ico",
"installerSidebar": "build/installer-sidebar.bmp",
"uninstallerSidebar": "build/installer-sidebar.bmp",
"artifactName": "CodexAuthSwitch-Setup-${version}.exe"
}
}
}