mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-22 17:00:21 +08:00
🔧 chore(ci): 补齐 Wails 前端构建前置资源目录
- 为 dev 和 release workflow 增加 frontend/dist 初始化 - 保证 Wails module 生成阶段可通过资源嵌入检查
This commit is contained in:
2
.github/workflows/dev-build.yml
vendored
2
.github/workflows/dev-build.yml
vendored
@@ -48,6 +48,8 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -p frontend/dist
|
||||
printf '<!doctype html><title>GoNavi</title>\n' > frontend/dist/index.html
|
||||
wails generate module
|
||||
node frontend/scripts/wails-frontend-install.mjs
|
||||
npm --prefix frontend run build
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -44,6 +44,8 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -p frontend/dist
|
||||
printf '<!doctype html><title>GoNavi</title>\n' > frontend/dist/index.html
|
||||
wails generate module
|
||||
node frontend/scripts/wails-frontend-install.mjs
|
||||
npm --prefix frontend run build
|
||||
|
||||
Reference in New Issue
Block a user