mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-05 23:47:54 +08:00
fix release-ui not prerun pnpm run build so that some file does not exist
This commit is contained in:
@@ -44,7 +44,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd packages/ui
|
cd packages/ui
|
||||||
node ./scripts/github-ci-build.mjs
|
pnpm run build:make-dist-for-current-platform
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -75,7 +75,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd packages/ui
|
cd packages/ui
|
||||||
node ./scripts/github-ci-build.mjs
|
pnpm run build:make-dist-for-current-platform
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -106,7 +106,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd packages/ui
|
cd packages/ui
|
||||||
node ./scripts/github-ci-build.mjs
|
pnpm run build:make-dist-for-current-platform
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
import makeDistForCurrentPlatform from './steps/make-dist-for-current-platform.mjs'
|
|
||||||
makeDistForCurrentPlatform()
|
|
||||||
+4
-2
@@ -3,12 +3,12 @@ import yaml from 'js-yaml'
|
|||||||
import url from 'node:url'
|
import url from 'node:url'
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import fs from 'node:fs'
|
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 __dirname = url.fileURLToPath(new URL('.', import.meta.url))
|
||||||
|
|
||||||
const getBuilderConfig = () => {
|
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() {
|
export default async function makeDistForCurrentPlatform() {
|
||||||
@@ -25,3 +25,5 @@ export default async function makeDistForCurrentPlatform() {
|
|||||||
|
|
||||||
return await builder.build(buildParameter)
|
return await builder.build(buildParameter)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
makeDistForCurrentPlatform()
|
||||||
Reference in New Issue
Block a user