-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Migrate from webpack to Vite & upgrade Tauri to V2 (#122)
* Migrate from webpack to vite * refactor: upgrade dependencies - Remove webpack config - Install the latest quasar library with vite plugin - Update the SaSS imports - Add APPLICATION_VERSION to the vite config - update Github Actions to recent versions with Ubuntu 22 for Linux build and Node Version 21. * feat: migrate tauri to version 2 --------- Co-authored-by: Arunmozhi <[email protected]>
- Loading branch information
1 parent
15f7121
commit 56458f8
Showing
37 changed files
with
18,493 additions
and
9,704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name: Run UI Build | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
cache: 'yarn' | ||
cache-dependency-path: yarn.lock | ||
- run: yarn && yarn build | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "21" | ||
cache: "yarn" | ||
cache-dependency-path: yarn.lock | ||
- run: yarn && yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,26 +6,46 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-20.04, windows-latest] | ||
platform: [ubuntu-22.04, windows-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: install Rust stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-20.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | ||
- name: install app dependencies and build it | ||
run: yarn --network-timeout 600000 && yarn tauri:build | ||
- uses: tauri-apps/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 21 | ||
|
||
- name: Install Rust stable | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Install system dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-22.04' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | ||
- name: Install JS dependencies | ||
run: yarn install | ||
|
||
- name: Build Desktop app - Tauri Build | ||
id: tauri_build | ||
uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload Linux build artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: matrix.platform == 'ubuntu-22.04' | ||
with: | ||
path: | | ||
${{ github.workspace }}/src-tauri/target/release/bundle/**/*.deb | ||
${{ github.workspace }}/src-tauri/target/release/bundle/**/*.rpm | ||
${{ github.workspace }}/src-tauri/target/release/bundle/**/*.AppImage | ||
- name: Upload Windows build artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: matrix.platform == 'windows-latest' | ||
with: | ||
path: | | ||
${{ github.workspace }}\src-tauri\target\release\bundle\**\*.exe | ||
${{ github.workspace }}\src-tauri\target\release\bundle\**\*.nsis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"exclude": ["node_modules", "dist"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.