Skip to content

Commit

Permalink
Merge pull request #82 from victoralvesf/tauri-v2-migration
Browse files Browse the repository at this point in the history
[0.6.0] - Migration to Tauri v2
  • Loading branch information
victoralvesf authored Nov 25, 2024
2 parents 91abea9 + 8ac3559 commit 46c57c9
Show file tree
Hide file tree
Showing 63 changed files with 8,559 additions and 6,635 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@tanstack/query/exhaustive-deps": "error"
},
"ignorePatterns": [
"src/**/*.css"
"src/**/*.css",
"src/**/*.json"
]
}
88 changes: 88 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: 'publish'

on:
push:
tags:
- 'v*'

jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest'
# for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest'
# for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04'
args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: install dependencies (ubuntu only)
# This must match the platform value defined above.
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev librsvg2-dev patchelf
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

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

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup node and setup cache
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: install frontend dependencies
run: pnpm install --no-frozen-lockfile

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'Aonsoku ${{ github.ref_name }}'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
17 changes: 13 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aonsoku",
"private": true,
"version": "0.5.0",
"version": "0.6.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -13,6 +13,9 @@
"cy:open": "cypress open",
"test": "cypress run --component"
},
"repository": {
"url": "https://github.com/victoralvesf/aonsoku"
},
"dependencies": {
"@chriscodesthings/random-css-hex-color": "^1.1.0",
"@hookform/resolvers": "^3.9.0",
Expand All @@ -38,7 +41,11 @@
"@tanstack/react-query": "^5.51.23",
"@tanstack/react-table": "^8.17.3",
"@tanstack/react-virtual": "^3.10.8",
"@tauri-apps/api": "^1",
"@tauri-apps/api": "^2.0.0",
"@tauri-apps/plugin-os": "^2.0.0",
"@tauri-apps/plugin-process": "^2.0.0",
"@tauri-apps/plugin-shell": "~2",
"@tauri-apps/plugin-updater": "~2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
Expand All @@ -60,8 +67,10 @@
"react-hotkeys-hook": "^4.5.0",
"react-i18next": "^14.1.2",
"react-lazy-load-image-component": "^1.6.0",
"react-markdown": "^9.0.1",
"react-router-dom": "^6.23.1",
"react-toastify": "^10.0.5",
"remark-gfm": "^4.0.0",
"tailwind-extended-shadows": "^0.4.0",
"tailwind-extended-shadows-merge": "^0.2.1",
"tailwind-merge": "^2.3.0",
Expand All @@ -75,11 +84,11 @@
"devDependencies": {
"@rocketseat/eslint-config": "^2.2.2",
"@tanstack/eslint-plugin-query": "^5.51.15",
"@tauri-apps/cli": "^1",
"@tauri-apps/cli": "^2.1.0",
"@types/crypto-js": "^4.2.2",
"@types/lodash": "^4.17.4",
"@types/node": "^20.12.12",
"@types/react": "^18.2.15",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.2.7",
"@types/react-lazy-load-image-component": "^1.6.4",
"@typescript-eslint/parser": "^7.14.1",
Expand Down
Loading

0 comments on commit 46c57c9

Please sign in to comment.