mirror of
https://github.com/nekename/OpenDeck.git
synced 2026-10-28 09:44:01 +00:00
Use Tauri CLI from Deno instead of Cargo
This commit is contained in:
1 parent
7a56beb505
commit
ce2e5342e5
4 files changed
+1143
-1214
No files matched your search
@@ -27,17 +27,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: cache Deno dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ env.DENO_DIR }}
|
||||
key: ${{ hashFiles('deno.lock') }}
|
||||
|
||||
- name: setup Deno
|
||||
uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: v1.x
|
||||
|
||||
- name: install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
@@ -48,6 +37,20 @@ jobs:
|
||||
with:
|
||||
workspaces: "./src-tauri -> target"
|
||||
|
||||
- name: setup Deno
|
||||
uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: v2.x
|
||||
|
||||
- name: cache Deno dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ env.DENO_DIR }}
|
||||
key: ${{ hashFiles('deno.lock') }}
|
||||
|
||||
- name: install frontend dependencies
|
||||
run: deno install
|
||||
|
||||
- name: install dependencies (ubuntu only)
|
||||
if: matrix.platform == 'ubuntu-22.04'
|
||||
run: |
|
||||
@@ -58,6 +61,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tauriScript: deno task tauri
|
||||
tagName: v__VERSION__
|
||||
releaseName: "OpenDeck v__VERSION__"
|
||||
releaseBody: "See the assets to download this version. See the README for installation instructions."
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# OpenDeck
|
||||
|
||||
OpenDeck is a desktop application for interfacing between human interface devices with keys or encoders and plugins, which provide actions to be carried out when the user interacts with the device. OpenDeck conforms to the [OpenAction](https://openaction.amankhanna.me/) API, which is cross-compatible with the Stream Deck SDK, allowing a wide range of pre-existing plugins to be used.
|
||||
OpenDeck is a desktop application for using stream controller devices like the Elgato Stream Deck. OpenDeck conforms to the [OpenAction](https://openaction.amankhanna.me/) API, which is cross-compatible with the Stream Deck SDK, allowing a wide range of pre-existing plugins to be used.
|
||||
|
||||
OpenDeck supports ProntoKey, Elgato Stream Deck and AKP153 (not AKP153e) hardware on all three major desktop platforms. If you would like to contribute support for additional hardware (e.g. Loupedeck) feel free to reach out on any of the support forums and make a pull request!
|
||||
OpenDeck supports ProntoKey, Elgato Stream Deck and some Ajazz hardware on all three major desktop platforms. If you would like to contribute support for additional hardware (e.g. Loupedeck) feel free to reach out on any of the support forums and make a pull request!
|
||||
|
||||
If you would like to support development of OpenDeck, consider [sponsoring me](https://github.com/sponsors/ninjadev64) on GitHub Sponsors!
|
||||
|
||||
@@ -64,9 +64,16 @@ To enable automatic launch on startup, the light theme, or to change the languag
|
||||
|
||||
### Building from source / contributing
|
||||
|
||||
You'll need to ensure that all of the [prerequisites for building a Tauri application](https://tauri.app/v1/guides/getting-started/prerequisites) are satisfied to build OpenDeck (this includes the Tauri CLI from `cargo install tauri-cli`), as well as [Deno](https://deno.com/). On GNU+Linux, you'll also need `libudev` installed for your distribution. You can then use `cargo tauri dev` and `cargo tauri build` to work with OpenDeck.
|
||||
You'll need to ensure that all of the [prerequisites for building a Tauri application](https://tauri.app/v1/guides/getting-started/prerequisites) are satisfied to build OpenDeck, as well as making sure that [Deno](https://deno.com/) is installed. On GNU+Linux, you'll also need `libudev` installed for your distribution. You can then use `deno task tauri dev` and `deno task tauri build` to work with OpenDeck.
|
||||
|
||||
When submitting a pull request, ensure that all of your Rust code has been formatted using `cargo fmt`, `cargo clippy` returns no violations, `deno task check` returns no violations, and modified Svelte code sticks to the existing style used as far as possible. Feel free to reach out on the support channels above for guidance when contributing!
|
||||
Before each commit, please ensure that all of the following are completed:
|
||||
- Rust code has been linted using `cargo clippy` and it discovers no violations
|
||||
- Rust code has been formatted using `cargo fmt`
|
||||
- TypeScript code has been linted using `deno lint` and it discovers no violations
|
||||
- Svelte code has been linted using `deno task check` and it discovers no violations
|
||||
- Frontend code has been formatted using `deno fmt`
|
||||
|
||||
Feel free to reach out on the support channels above for guidance when contributing!
|
||||
|
||||
OpenDeck is licensed under the GNU General Public License version 3.0 or later. For more details, see the LICENSE.md file.
|
||||
|
||||
|
||||
+3
-1
@@ -8,12 +8,14 @@
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"build": "vite build",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"tauri": "tauri"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-static": "^3.0",
|
||||
"@sveltejs/kit": "^2.6",
|
||||
"@sveltejs/vite-plugin-svelte": "^3.1",
|
||||
"@tauri-apps/cli": "^2.0",
|
||||
"autoprefixer": "^10.4",
|
||||
"postcss": "^8.4",
|
||||
"svelte": "^4.2",
|
||||
|
||||
Reference in new issue
Block a user