add script for making dist for current platform and arch

This commit is contained in:
geekgeekrun
2024-04-14 15:57:11 +08:00
parent 1d43cf596c
commit 1a3cb104a5
6 changed files with 50 additions and 25 deletions
+13
View File
@@ -0,0 +1,13 @@
import os from 'node:os'
export const currentOsPlatform = os.platform()
export const osPlatformToBuildCommandMap = {
darwin: 'mac',
linux: 'linux',
win32: 'win'
}
export const buildTargetListMapByPlatform = {
darwin: ['dmg'],
linux: ['deb'],
win32: ['nsis']
}