pandacode 0.3.23 → 0.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer.mjs +3 -1
- package/package.json +1 -1
package/installer.mjs
CHANGED
|
@@ -12,14 +12,16 @@ export const PUBKEY = 'dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDM3O
|
|
|
12
12
|
export const BASE = 'https://github.com/aicodeking/pandacode/releases/latest/download';
|
|
13
13
|
const ASSETS = {
|
|
14
14
|
'darwin-arm64': 'PandaCode-macOS-arm64.app.tar.gz',
|
|
15
|
+
'darwin-x64': 'PandaCode-macOS-x64.app.tar.gz',
|
|
15
16
|
'win32-x64': 'PandaCode-Windows-x64-setup.exe',
|
|
17
|
+
'win32-arm64': 'PandaCode-Windows-arm64-setup.exe',
|
|
16
18
|
'linux-x64': 'PandaCode-Linux-x86_64.AppImage',
|
|
17
19
|
'linux-arm64': 'PandaCode-Linux-aarch64.AppImage',
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
export function assetFor(platform = process.platform, arch = process.arch) {
|
|
21
23
|
const asset = ASSETS[`${platform}-${arch}`];
|
|
22
|
-
if (!asset) throw new Error(`PandaCode has no build for ${platform}-${arch}. Supported: macOS Apple silicon, Windows x64, Linux x64.`);
|
|
24
|
+
if (!asset) throw new Error(`PandaCode has no build for ${platform}-${arch}. Supported: macOS (Apple silicon or Intel), Windows x64, Linux x64.`);
|
|
23
25
|
return asset;
|
|
24
26
|
}
|
|
25
27
|
|