feat(desktop): implement backend wrapper auth

This commit is contained in:
Gusram
2024-05-30 22:53:59 +08:00
parent f8ac6dfeb1
commit 4156551b24
9 changed files with 402 additions and 5 deletions

View File

@@ -14,3 +14,20 @@ Since TypeScript cannot handle type information for `.vue` imports, they are shi
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
## Building
### Prequisites
- Install Rust: `curl https://sh.rustup.rs -sSf | sh`
- libsoup2.4-dev installed if Linux: `sudo apt install libsoup2.4-dev`
- Node v18.20 installed and currently active if you're using nvm
### Build Instruction
1. Install latest pnpm `curl -fsSL https://get.pnpm.io/install.sh | sh -` or upgrade `pnpm add -g pnpm`
2. Setup the .env of the root project folder, you should deploy the self hosted backend first
3. Run `pnpm install` on root project folder
4. Run `pnpm dev:gql-codegen` on this folder
5. Run `pnpm tauri dev` to run debug mode (optional)
6. Run `pnpm tauri build` to build release mode
- `pnpm tauri build --target aarch64-apple-darwin` for Apple Sillicon