Skip to content

Commit 213947e

Browse files
committed
feat: can browse log folder
1 parent 1214e94 commit 213947e

File tree

8 files changed

+806
-250
lines changed

8 files changed

+806
-250
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
matrix:
1414
include:
1515
- platform: 'macos-latest'
16+
args: '--target universal-apple-darwin'
1617
name: 'macOS'
1718
- platform: 'windows-latest'
19+
args: ''
1820
name: 'Windows'
19-
- platform: 'ubuntu-latest'
20-
name: 'Linux'
2121

2222
runs-on: ${{ matrix.platform }}
2323

@@ -37,6 +37,9 @@ jobs:
3737

3838
- name: Setup Rust
3939
uses: dtolnay/rust-toolchain@stable
40+
with:
41+
# For universal macOS build
42+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4043

4144
- name: Install dependencies (Ubuntu)
4245
if: matrix.platform == 'ubuntu-latest'
@@ -47,25 +50,21 @@ jobs:
4750
- name: Install frontend dependencies
4851
run: pnpm install
4952

50-
- name: Build frontend
51-
run: pnpm build
52-
5353
- name: Build Tauri app
54-
run: pnpm tauri build
55-
56-
- name: List build artifacts (Debug)
57-
run: |
58-
echo "=== Build artifacts for ${{ matrix.platform }} ==="
59-
find src-tauri/target -name "*.dmg" -o -name "*.app" -o -name "*.msi" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" | head -20
54+
uses: tauri-apps/tauri-action@v0
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
with:
58+
args: ${{ matrix.args }}
6059

6160
- name: Upload artifacts (macOS)
6261
if: matrix.platform == 'macos-latest'
6362
uses: actions/upload-artifact@v4
6463
with:
6564
name: macos-build
6665
path: |
67-
src-tauri/target/release/bundle/dmg/*.dmg
68-
src-tauri/target/release/bundle/macos/*.app
66+
src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg
67+
src-tauri/target/universal-apple-darwin/release/bundle/macos/*.app
6968
if-no-files-found: warn
7069

7170
- name: Upload artifacts (Windows)
@@ -78,16 +77,6 @@ jobs:
7877
src-tauri/target/release/bundle/nsis/*.exe
7978
if-no-files-found: warn
8079

81-
- name: Upload artifacts (Linux)
82-
if: matrix.platform == 'ubuntu-latest'
83-
uses: actions/upload-artifact@v4
84-
with:
85-
name: linux-build
86-
path: |
87-
src-tauri/target/release/bundle/appimage/*.AppImage
88-
src-tauri/target/release/bundle/deb/*.deb
89-
if-no-files-found: warn
90-
9180
release:
9281
needs: build
9382
if: startsWith(github.ref, 'refs/tags/v')
@@ -98,23 +87,13 @@ jobs:
9887
with:
9988
path: artifacts
10089

101-
- name: List downloaded artifacts (Debug)
102-
run: |
103-
echo "=== Downloaded artifacts ==="
104-
find artifacts -type f -name "*" | head -20
105-
10690
- name: Create Release
10791
uses: softprops/action-gh-release@v1
10892
with:
10993
files: |
110-
artifacts/macos-build/**/*.dmg
111-
artifacts/macos-build/**/*.app
112-
artifacts/windows-build/**/*.msi
113-
artifacts/windows-build/**/*.exe
114-
artifacts/linux-build/**/*.AppImage
115-
artifacts/linux-build/**/*.deb
116-
draft: false
117-
prerelease: false
94+
artifacts/**/*.dmg
95+
artifacts/**/*.msi
96+
artifacts/**/*.exe
11897
env:
11998
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12099

src-tauri/Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ serde = { version = "1", features = ["derive"] }
2727
serde_json = "1"
2828
tokio = { version = "1", features = ["full"] }
2929
uuid = { version = "1", features = ["v4", "serde"] }
30+
chrono = "0.4"
3031

0 commit comments

Comments
 (0)