Skip to content

Commit a54c395

Browse files
committed
test
1 parent 2f081f8 commit a54c395

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+8936
-1291
lines changed

.github/workflows/action.yml

+66
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,69 @@ jobs:
9292
tag: ${{ github.ref }}
9393
prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }}
9494
overwrite: true
95+
96+
publish-tauri:
97+
permissions:
98+
contents: write
99+
strategy:
100+
fail-fast: false
101+
matrix:
102+
include:
103+
- platform: 'macos-latest' # for Arm based macs (M1 and above).
104+
args: '--target aarch64-apple-darwin'
105+
- platform: 'macos-latest' # for Intel based macs.
106+
args: '--target x86_64-apple-darwin'
107+
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
108+
args: ''
109+
- platform: 'windows-latest'
110+
args: ''
111+
112+
runs-on: ${{ matrix.platform }}
113+
steps:
114+
- uses: actions/checkout@v4
115+
116+
- name: install dependencies (ubuntu only)
117+
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
118+
run: |
119+
sudo apt-get update
120+
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
121+
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
122+
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
123+
124+
- name: setup node
125+
uses: actions/setup-node@v4
126+
with:
127+
node-version: lts/*
128+
129+
- name: 🥟 Setup Bun
130+
uses: oven-sh/setup-bun@v1
131+
with:
132+
bun-version: latest
133+
134+
- name: install Rust stable
135+
uses: dtolnay/rust-toolchain@stable
136+
with:
137+
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
138+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
139+
140+
- name: Rust cache
141+
uses: swatinem/rust-cache@v2
142+
with:
143+
workspaces: './src-tauri -> target'
144+
145+
- name: 📦 Install dependencies
146+
run: |
147+
cd ping-viewer-next-desktop
148+
bun install
149+
150+
- uses: tauri-apps/[email protected]
151+
env:
152+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153+
with:
154+
projectPath: './ping-viewer-next-desktop'
155+
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
156+
releaseName: 'App v__VERSION__'
157+
releaseBody: 'See the assets to download this version and install.'
158+
releaseDraft: true
159+
prerelease: false
160+
args: ${{ matrix.args }}

ping-viewer-next-desktop/bun.lockb

-522 Bytes
Binary file not shown.

ping-viewer-next-desktop/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@
1111
},
1212
"dependencies": {
1313
"vue": "^3.3.4",
14-
"@tauri-apps/api": ">=2.0.0-rc.0",
15-
"@tauri-apps/plugin-shell": ">=2.0.0-rc.0"
14+
"@tauri-apps/api": "^1"
1615
},
1716
"devDependencies": {
1817
"@vitejs/plugin-vue": "^5.0.5",
1918
"typescript": "^5.2.2",
2019
"vite": "^5.3.1",
2120
"vue-tsc": "^2.0.22",
22-
"@tauri-apps/cli": ">=2.0.0-rc.0"
21+
"@tauri-apps/cli": "^1"
2322
}
2423
}

0 commit comments

Comments
 (0)