mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-08-28 03:26:42 +08:00
add script for making dist for current platform and arch
This commit is contained in:
@@ -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']
|
||||
}
|
||||
Reference in New Issue
Block a user