-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
108 lines (108 loc) · 3.58 KB
/
Copy pathpackage.json
File metadata and controls
108 lines (108 loc) · 3.58 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
{
"name": "codexauth-switch",
"version": "0.1.6",
"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": {
"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",
"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",
"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"
},
"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",
"signAndEditExecutable": false,
"target": [
"nsis"
]
},
"mac": {
"icon": "src/ui/assets/codex-color.png",
"category": "public.app-category.utilities",
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
}
],
"artifactName": "CodexAuthSwitch-${version}-${arch}.${ext}"
},
"nsis": {
"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"
}
}
}