Skip to content

Commit e5e97f3

Browse files
authored
Merge pull request #1141 from Lay3rLabs/app-build
App build
2 parents 171ebc9 + 535b246 commit e5e97f3

3 files changed

Lines changed: 34 additions & 4 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: "Repo setup"
22
description: "Common CI setup steps (tools, deps, caches, etc.)"
33

4+
inputs:
5+
github-token:
6+
description: "GitHub token for authenticated API requests (avoids rate limits)"
7+
required: false
8+
default: ""
9+
410
runs:
511
using: "composite"
612
steps:
@@ -15,6 +21,11 @@ runs:
1521
librsvg2-dev \
1622
patchelf
1723
24+
- name: Install protoc
25+
uses: arduino/setup-protoc@v3
26+
with:
27+
repo-token: ${{ inputs.github-token }}
28+
1829
- name: Install Rust
1930
uses: dtolnay/rust-toolchain@master
2031
with:

.github/workflows/tauri.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v4
2828
- uses: ./.github/actions/setup
29+
with:
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
2931

3032
- name: Install Node.js
3133
uses: actions/setup-node@v4
@@ -35,6 +37,7 @@ jobs:
3537
- name: Install pnpm
3638
uses: pnpm/action-setup@v4
3739
with:
40+
package_json_file: app/package.json
3841
run_install: false
3942

4043
- name: Install frontend dependencies
@@ -45,9 +48,25 @@ jobs:
4548
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4649
with:
4750
projectPath: "./app"
48-
tagName: wavs-app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
49-
releaseName: "WAVS v__VERSION__"
51+
tagName: ${{ github.ref_name }}
52+
releaseName: ${{ github.ref_name }}
5053
releaseBody: "See the assets to download this version and install."
51-
releaseDraft: true
54+
releaseDraft: false
5255
prerelease: false
5356
args: ${{ matrix.args }}
57+
58+
- name: Rename release assets to strip version
59+
shell: bash
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
run: |
63+
TAG="${{ github.ref_name }}"
64+
REPO="${{ github.repository }}"
65+
66+
gh api "repos/${REPO}/releases/tags/${TAG}" --jq '.assets[] | "\(.id) \(.name)"' | while read -r id name; do
67+
renamed=$(echo "$name" | sed 's/-0\.0\.1-1/_/' | sed 's/[_-]0\.0\.1//' | sed 's/__/_/g; s/_\./\./')
68+
if [ "$renamed" != "$name" ]; then
69+
echo "Renaming: $name -> $renamed"
70+
gh api --method PATCH "repos/${REPO}/releases/assets/${id}" -f name="$renamed" --silent
71+
fi
72+
done

app/src/stores/appStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface AppState {
3838

3939
export const useAppStore = create<AppState>((set, get) => ({
4040
// Initial state
41-
settings: { wavs_home: null, saved_registries: [], saved_service_managers: [] },
41+
settings: { wavs_home: null, saved_registries: [], saved_service_managers: [], saved_services: [], mcp_enabled: false, mcp_auto_start: false, mcp_token: null, env_vars: {} },
4242
logList: [],
4343
activityList: [],
4444
services: new Map(),

0 commit comments

Comments
 (0)