mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
chore: remove Windows ARM64 build support and add npm publish scripts
- Add publish-npm and publish-npm:dry-run scripts to root package.json (forwarding to cli) - Remove Windows ARM64 (bun-windows-arm64) from DEFAULT_TARGETS in build-executable.ts - Remove Windows ARM64 check from getPlatformDir in build-executable.ts - Remove HAPI_TARGET_WIN32_ARM64 from bunBundle.d.ts type definitions - Remove Windows ARM64 check from embeddedAssets.bun.ts
This commit is contained in:
@@ -7,8 +7,7 @@ const DEFAULT_TARGETS = [
|
||||
'bun-darwin-arm64',
|
||||
'bun-linux-x64',
|
||||
'bun-linux-arm64',
|
||||
'bun-windows-x64',
|
||||
'bun-windows-arm64'
|
||||
'bun-windows-x64'
|
||||
];
|
||||
const SUPPORTED_PLATFORMS = new Set(['darwin', 'linux', 'windows']);
|
||||
const SUPPORTED_ARCHES = new Set(['x64', 'arm64']);
|
||||
@@ -99,9 +98,6 @@ function getPlatformDir(platform: string, arch: string): string {
|
||||
}
|
||||
|
||||
if (platform === 'win32') {
|
||||
if (arch !== 'x64') {
|
||||
throw new Error('Windows arm64 archives are missing; add arm64 tool archives before building.');
|
||||
}
|
||||
return 'x64-win32';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user