Skip to content

Commit

Permalink
feat: working prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
KonecnyDavid committed Feb 11, 2025
1 parent 6adca74 commit a9fcecf
Show file tree
Hide file tree
Showing 73 changed files with 15,430 additions and 1,412 deletions.
43 changes: 13 additions & 30 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm-based macs (M1 and above).
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel-based macs.
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: ''
- platform: 'windows-2019' # Use an older Windows runner for Windows 7 compatibility.
- platform: 'windows-latest'
args: ''

runs-on: ${{ matrix.platform }}
Expand All @@ -31,48 +31,31 @@ jobs:
with:
node-version: lts/*

- name: install Rust 1.63 (for Windows 7 compatibility)
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.63.0
# 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: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: install Windows 7 compatible build tools
if: matrix.platform == 'windows-2019'
run: |
choco install -y visualstudio2019buildtools
choco install -y visualstudio2019-workload-vctools
choco install -y windows-sdk-7.1
rustup target add x86_64-pc-windows-msvc
- name: install WebView2 Runtime for Windows 7
if: matrix.platform == 'windows-2019'
run: |
Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile WebView2.exe
Start-Process WebView2.exe -ArgumentList "/silent /install" -NoNewWindow -Wait
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.

- name: install frontend dependencies
run: yarn install # change this to npm, pnpm or bun depending on what you use.
run: yarn install # change this to npm, pnpm or bun depending on which one you use.

- uses: tauri-apps/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
includeUpdaterJson: false
args: ${{ matrix.args }}

- name: Verify Windows 7 Compatibility
if: matrix.platform == 'windows-2019'
run: |
echo "Checking for missing DLLs..."
dumpbin /dependents target/release/bundle/msi/*.exe || echo "Dependency check failed"
args: ${{ matrix.args }}
12 changes: 12 additions & 0 deletions orval.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'orval';

export default defineConfig({
dareg: {
input: 'http://localhost:8000/api/schema/',
output: {
target:'./src/api.ts',
client: "react-query",
baseUrl: "http://localhost:8000/"
},
},
});
Loading

0 comments on commit a9fcecf

Please sign in to comment.