Skip to content

Commit

Permalink
途中
Browse files Browse the repository at this point in the history
  • Loading branch information
unchidev committed Jun 2, 2024
1 parent 637bf69 commit dc01213
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'build-windows'

on:
workflow_dispatch:

jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.10

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: install frontend dependencies
run: bun install

- name: build tauri app
run: bun run tauri build

# result
# src-tauri/target/release/bundle/msi/tauri-app_0.0.0_x64_en-US.msi
# src-tauri/target/release/bundle/nsis/tauri-app_0.0.0_x64-setup.exe
- name: upload tauri app build
uses: actions/upload-artifact@v4
with:
name: tauri-app-build
path: src-tauri/target/release/bundle/*
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ onUnmounted(() => {

<div class="flex items-center justify-between space-x-4">
<span class="text-gray-700">Master Volume</span>
<input v-model.number="masterVolume" type="range" min="0" max="1" step="0.01" class="w-56">
<input v-model.number="masterVolume" type="range" min="0" max="1" step="0.01" class="w-56 accent-red-500">
</div>

<div class="flex items-center justify-between space-x-4">
Expand Down Expand Up @@ -150,8 +150,8 @@ onUnmounted(() => {
</div>
</div>

<button @click="togglePlay" :class="`rounded-full w-60 h-60 text-gray-700 text-lg ${isPlaying ? 'hover:nm-flat-gray-200-lg nm-flat-gray-200-lg' : 'nm-flat-gray-200-xl hover:nm-flat-gray-200-lg'}`">
{{ isPlaying ? 'Pause' : 'Play' }}
<button @click="togglePlay" :class="`rounded-full w-60 h-60 text-lg ${isPlaying ? 'hover:nm-flat-gray-200-lg nm-flat-gray-200-lg text-indigo-500' : 'nm-flat-gray-200-xl hover:nm-flat-gray-200-lg text-gray-400'}`">
Play
</button>
</div>
</template>

0 comments on commit dc01213

Please sign in to comment.