Skip to content

Commit

Permalink
feat!: Add auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rel1cx committed Apr 6, 2023
1 parent 9bb4da2 commit 57866a1
Show file tree
Hide file tree
Showing 10 changed files with 392 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"overrides": [
{
"files": ["vite.config.ts"],
"files": ["scripts/**/*.ts", "vite.config.ts"],
"parserOptions": {
"project": "tsconfig.node.json"
}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
Expand All @@ -42,7 +42,7 @@ jobs:
with:
workspaces: src-tauri
- name: Update version
run: make update-version
run: pnpm run update-version
- uses: tauri-apps/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
Expand All @@ -67,7 +67,7 @@ jobs:
with:
workspaces: src-tauri
- name: Update version
run: make update-version
run: pnpm run update-version
- uses: tauri-apps/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 0 additions & 5 deletions Makefile

This file was deleted.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"format": "npm run format:ts && npm run format:rs",
"lint": "npm run lint:ts && npm run lint:rs",
"clean": "rm -rf dist node_modules pnpm-lock.yaml && cd src-tauri && cargo clean",
"i18n": "typesafe-i18n"
"i18n": "typesafe-i18n",
"update-version": "tsx ./scripts/update_version.ts"
},
"dependencies": {
"@mantine/core": "6.0.6",
Expand Down Expand Up @@ -47,9 +48,11 @@
"eslint-config-with-tsconfig": "1.2.6",
"prettier": "2.8.7",
"sass": "1.60.0",
"tsx": "3.12.6",
"typesafe-i18n": "5.24.3",
"typescript": "5.0.3",
"vite": "4.2.1"
"vite": "4.2.1",
"zx": "7.2.1"
},
"packageManager": "pnpm@8.1.1",
"pnpm": {
Expand Down
Loading

0 comments on commit 57866a1

Please sign in to comment.