Skip to content

Commit

Permalink
tauri (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrades committed Mar 27, 2024
1 parent a1fbd85 commit 114cc11
Show file tree
Hide file tree
Showing 97 changed files with 5,518 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: oven-sh/setup-bun@v1
- name: "📦 Install"
run: bun install --frozen-lockfile

- name: install Rust stable
uses: dtolnay/rust-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 libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ node_modules/
/playwright/.cache/
coverage
bench/report.json

src-tauri/gen/android/app/universal/release
1 change: 1 addition & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export default defineConfig({
},
social: {
"x.com": "https://x.com/tesourofieis",
discord: "https://discord.gg/EfJgnNNBsv",
github: "https://github.com/tesourofieis/tesourofieis",
patreon: "https://www.patreon.com/tesourofieis",
},
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"include": ["playwright-tests/**", "src/**"],
"ignore": ["dist/**", "src/lib/resources/**"]
"ignore": ["dist/**", "src/lib/resources/**", "src-tauri"]
},
"organizeImports": {
"enabled": true
Expand Down
Binary file modified bun.lockb
Binary file not shown.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "starlight",
"type": "module",
"version": "0.0.3",
"version": "1.0.1",
"engines": {
"node": "20.9.0"
},
Expand All @@ -17,7 +17,8 @@
"coverage": "vitest --coverage ./src/tests",
"deploy-preview": "wrangler pages dev ./dist",
"check": "biome check . --apply",
"check-astro": "astro check"
"check-astro": "astro check",
"tauri": "tauri"
},
"dependencies": {
"@astrojs/partytown": "^2.0.4",
Expand All @@ -26,6 +27,8 @@
"@astrojs/starlight-tailwind": "^2.0.1",
"@astrojs/tailwind": "^5.1.0",
"@date-fns/utc": "^1.2.0",
"@tauri-apps/api": "next",
"@tauri-apps/cli": "next",
"@types/react": "^18.2.69",
"@types/react-dom": "^18.2.22",
"astro": "^4.5.9",
Expand Down
4 changes: 4 additions & 0 deletions src-tauri/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build]
target = "x86_64-unknown-linux-gnu"

[target]
4 changes: 4 additions & 0 deletions src-tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Generated by Cargo
# will have compiled files and executables
/target/
/gen/schemas

0 comments on commit 114cc11

Please sign in to comment.