mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-08-04 04:36:58 +08:00
fix release-ui not prerun pnpm run build so that some file does not exist
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
import makeDistForCurrentPlatform from './steps/make-dist-for-current-platform.mjs'
|
||||
makeDistForCurrentPlatform()
|
||||
@@ -3,12 +3,12 @@ import yaml from 'js-yaml'
|
||||
import url from 'node:url'
|
||||
import path from 'node:path'
|
||||
import fs from 'node:fs'
|
||||
import { buildTargetListMapByPlatform, osPlatformToBuildCommandMap } from '../vars/os.mjs'
|
||||
import { buildTargetListMapByPlatform, osPlatformToBuildCommandMap } from './vars/os.mjs'
|
||||
|
||||
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
|
||||
|
||||
const getBuilderConfig = () => {
|
||||
return yaml.load(fs.readFileSync(path.join(__dirname, '../../electron-builder.yml'), 'utf8'))
|
||||
return yaml.load(fs.readFileSync(path.join(__dirname, '../electron-builder.yml'), 'utf8'))
|
||||
}
|
||||
|
||||
export default async function makeDistForCurrentPlatform() {
|
||||
@@ -25,3 +25,5 @@ export default async function makeDistForCurrentPlatform() {
|
||||
|
||||
return await builder.build(buildParameter)
|
||||
}
|
||||
|
||||
makeDistForCurrentPlatform()
|
||||
Reference in New Issue
Block a user