-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
7,916 additions
and
1,281 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: Tauri Workflow Release Process | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
app-slug: | ||
type: string | ||
description: Slug of the application | ||
required: true | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CN_APP_SLUG: ${{ github.event.inputs.app-slug }} | ||
|
||
jobs: | ||
draft: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: create draft release | ||
uses: crabnebula-dev/[email protected] | ||
with: | ||
command: release draft ${{ env.CN_APP_SLUG }} --framework tauri | ||
api-key: ${{ secrets.CN_API_KEY }} | ||
|
||
build: | ||
needs: draft | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- name: Install stable toolchain | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
cache: true | ||
|
||
- name: install Linux dependencies | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y webkit2gtk-4.0 | ||
- name: Install x86_64-apple-darwin for mac and build Tauri binaries | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
rustup target add x86_64-apple-darwin | ||
npm ci | ||
npm run tauri build -- --target x86_64-apple-darwin | ||
npm run tauri build -- --target aarch64-apple-darwin | ||
env: | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
|
||
- name: build Tauri app for Windows, Linux | ||
if: matrix.os != 'macos-latest' | ||
run: | | ||
npm ci | ||
npm run tauri build | ||
env: | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
|
||
- name: upload assets | ||
uses: crabnebula-dev/[email protected] | ||
with: | ||
command: release upload ${{ env.CN_APP_SLUG }} --framework tauri | ||
api-key: ${{ secrets.CN_API_KEY }} | ||
path: ./src-tauri | ||
|
||
publish: | ||
needs: build | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: publish release | ||
uses: crabnebula-dev/[email protected] | ||
with: | ||
command: release publish ${{ env.CN_APP_SLUG }} --framework tauri | ||
api-key: ${{ secrets.CN_API_KEY }} |
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
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 @@ | ||
export {Router} from './Router'; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
export const Layout = { | ||
get App() { | ||
return require('../Layout').default; | ||
}, | ||
} | ||
|
||
export const Screen = { | ||
get Settings() { | ||
return require('../ScreenSettings').default; | ||
}, | ||
get Storage() { | ||
return require('../ScreenStorage').default; | ||
}, | ||
get Teaser() { | ||
return require('../ScreenTeaser').default; | ||
}, | ||
get Home() { | ||
return require('../../../home/routes/ScreenHome').default; | ||
}, | ||
get Browse() { | ||
return require('../../../media/routes/ScreenBrowse').default; | ||
}, | ||
get View() { | ||
return require('../../../media/routes/ScreenView').default; | ||
}, | ||
get World() { | ||
return require('../../../world/routes/ScreenWorld').default; | ||
}, | ||
get Map() { | ||
return require('../../../world/routes/ScreenMap').default; | ||
}, | ||
get Calendar() { | ||
return require('../../../world/routes/ScreenCalendar').default; | ||
}, | ||
get Design() { | ||
return require('../../../dev/routes/ScreenDesign').default; | ||
}, | ||
get Library() { | ||
return require('../../../dev/routes/ScreenLibrary').default; | ||
}, | ||
} |
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,43 @@ | ||
import {lazy} from 'react'; | ||
|
||
export const Layout = { | ||
App: lazy( | ||
() => import('../Layout') | ||
), | ||
} | ||
|
||
export const Screen = { | ||
Settings: lazy( | ||
() => import('../ScreenSettings') | ||
), | ||
Storage: lazy( | ||
() => import('../ScreenStorage') | ||
), | ||
Teaser: lazy( | ||
() => import('../ScreenTeaser') | ||
), | ||
Home: lazy( | ||
() => import('../../../home/routes/ScreenHome') | ||
), | ||
Browse: lazy( | ||
() => import('../../../media/routes/ScreenBrowse') | ||
), | ||
View: lazy( | ||
() => import('../../../media/routes/ScreenView') | ||
), | ||
World: lazy( | ||
() => import('../../../world/routes/ScreenWorld') | ||
), | ||
Map: lazy( | ||
() => import('../../../world/routes/ScreenMap') | ||
), | ||
Calendar: lazy( | ||
() => import('../../../world/routes/ScreenCalendar') | ||
), | ||
Design: lazy( | ||
() => import('../../../dev/routes/ScreenDesign') | ||
), | ||
Library: lazy( | ||
() => import('../../../dev/routes/ScreenLibrary') | ||
), | ||
} |
Oops, something went wrong.