-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from vircadia/feature/desktop-wrapper
Add desktop wrapper.
- Loading branch information
Showing
56 changed files
with
17,349 additions
and
13,224 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
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,52 @@ | ||
name: '🖥️ Desktop Build' | ||
on: | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
desktop-build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-20.04, windows-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install Rust | ||
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 | ||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
env: | ||
NODE_OPTIONS: "--max_old_space_size=4096" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VRCA_DESKTOP_MODE: build | ||
run: cd desktop && npm run tauri build | ||
|
||
- name: Upload Build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-desktop-${{ matrix.platform }}-${{ github.event.number }} | ||
path: | | ||
${{ runner.workspace }}/vircadia-web/desktop/src-tauri/target/release/bundle/**/*.app | ||
${{ runner.workspace }}/vircadia-web/desktop/src-tauri/target/release/bundle/**/*.dmg | ||
${{ runner.workspace }}/vircadia-web/desktop/src-tauri/target/release/bundle/**/*.deb | ||
${{ runner.workspace }}/vircadia-web/desktop/src-tauri/target/release/bundle/**/*.AppImage | ||
${{ runner.workspace }}/vircadia-web/desktop/src-tauri/target/release/bundle/**/*.msi | ||
${{ runner.workspace }}/vircadia-web/desktop/src-tauri/target/release/bundle/**/*.exe | ||
if-no-files-found: error |
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,3 @@ | ||
[submodule "public/assets"] | ||
path = public/assets | ||
url = https://github.com/vircadia/vircadia-assets.git |
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,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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,7 @@ | ||
{ | ||
"recommendations": [ | ||
"Vue.volar", | ||
"tauri-apps.tauri-vscode", | ||
"rust-lang.rust-analyzer" | ||
] | ||
} |
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,36 @@ | ||
# Vircadia Desktop | ||
|
||
This is a desktop wrapper around the Vircadia Web interface, made using [Tauri](https://tauri.app/). | ||
|
||
|
||
## Recommended IDE Setup | ||
|
||
[VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) | ||
|
||
|
||
## Installation | ||
|
||
```sh | ||
npm install | ||
``` | ||
|
||
|
||
## Development | ||
|
||
Start in dev mode with hot-reloading: | ||
```sh | ||
npm run dev | ||
``` | ||
|
||
New app icons can be generated with: | ||
```sh | ||
npm run make-icon | ||
``` | ||
The icons are generated from the Vircadia logo image: `../public/assets/images/branding/vircadia-icon-256.png` | ||
|
||
|
||
## Building | ||
|
||
```sh | ||
npm run build | ||
``` |
Oops, something went wrong.