move electron folder

This commit is contained in:
Anton Bracke 2022-02-22 10:41:55 +01:00
parent ac18aab773
commit 41be011d5e
No known key found for this signature in database
GPG Key ID: B1222603899C6B25
36 changed files with 19 additions and 18 deletions

View File

@ -62,24 +62,24 @@ jobs:
- name: "Install dependencies" - name: "Install dependencies"
run: yarn install --froze-lockfile run: yarn install --froze-lockfile
working-directory: "desktop" working-directory: "desktop/electron"
- name: "Build typescript" - name: "Build typescript"
run: yarn build run: yarn build
working-directory: "desktop" working-directory: "desktop/electron"
- name: "Build app" - name: "Build app"
run: yarn bundle --publish never run: yarn bundle --publish never
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: "desktop" working-directory: "desktop/electron"
if: ${{ github.event_name != 'release' }} if: ${{ github.event_name != 'release' }}
- name: "Build & publish App" - name: "Build & publish App"
run: yarn release run: yarn release
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: "desktop" working-directory: "desktop/electron"
if: ${{ github.event_name == 'release' }} if: ${{ github.event_name == 'release' }}
- name: Upload Linux .AppImage artifact - name: Upload Linux .AppImage artifact
@ -87,18 +87,18 @@ jobs:
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
with: with:
name: workadventure-desktop-linux-x64.AppImage name: workadventure-desktop-linux-x64.AppImage
path: desktop/build/workadventure-desktop-*-x86_64.AppImage path: desktop/electron/build/workadventure-desktop-*-x86_64.AppImage
- name: Upload Windows .exe artifact - name: Upload Windows .exe artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: startsWith(matrix.os, 'windows') if: startsWith(matrix.os, 'windows')
with: with:
name: workadventure-desktop-win-x64.exe name: workadventure-desktop-win-x64.exe
path: desktop/build/workadventure-desktop-*.exe path: desktop/electron/build/workadventure-desktop-*.exe
- name: Upload MacOS .dmg artifact - name: Upload MacOS .dmg artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: startsWith(matrix.os, 'macos') if: startsWith(matrix.os, 'macos')
with: with:
name: workadventure-mac.dmg name: workadventure-mac.dmg
path: desktop/build/workadventure-desktop-*.dmg path: desktop/electron/build/workadventure-desktop-*.dmg

View File

@ -194,23 +194,23 @@ jobs:
- name: "Build" - name: "Build"
run: yarn build run: yarn build
working-directory: "desktop" working-directory: "desktop/electron"
- name: "Typecheck" - name: "Typecheck"
run: yarn typecheck run: yarn typecheck
working-directory: "desktop" working-directory: "desktop/electron"
- name: "Lint" - name: "Lint"
run: yarn lint run: yarn lint
working-directory: "desktop" working-directory: "desktop/electron"
- name: "Jasmine" - name: "Jasmine"
run: yarn test run: yarn test
working-directory: "desktop" working-directory: "desktop/electron"
- name: "Prettier" - name: "Prettier"
run: yarn pretty-check run: yarn pretty-check
working-directory: "desktop" working-directory: "desktop/electron"
continuous-integration-desktop-local-app: continuous-integration-desktop-local-app:
name: "Continuous Integration Desktop Local App" name: "Continuous Integration Desktop Local App"

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -3,7 +3,8 @@ appId: re.workadventu.desktop
files: files:
- "dist/**/*" - "dist/**/*"
- "assets/**/*" - "assets/**/*"
- "local-app/dist/**/*" - from: "../local-app/dist/"
to: "local-app/dist"
directories: directories:
output: ./build output: ./build

View File

@ -7,9 +7,9 @@
"license": "SEE LICENSE IN LICENSE.txt", "license": "SEE LICENSE IN LICENSE.txt",
"scripts": { "scripts": {
"build": "tsup-node ./src/main.ts ./src/preload-local-app/preload.ts ./src/preload-app/preload.ts", "build": "tsup-node ./src/main.ts ./src/preload-local-app/preload.ts ./src/preload-app/preload.ts",
"build:local-app": "cd local-app && yarn && yarn build", "build:local-app": "cd ../local-app && yarn && yarn build",
"dev": "yarn build --watch --onSuccess 'yarn electron dist/main.js'", "dev": "yarn build --watch --onSuccess 'yarn electron dist/main.js'",
"dev:local-app": "cd local-app && yarn && yarn dev", "dev:local-app": "cd ../local-app && yarn && yarn dev",
"bundle": "yarn build:local-app && yarn build && electron-builder install-app-deps && electron-builder", "bundle": "yarn build:local-app && yarn build && electron-builder install-app-deps && electron-builder",
"release": "yarn bundle", "release": "yarn bundle",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",

View File

@ -53,12 +53,12 @@
> >
<Link <Link
to="/settings" to="/settings"
class="flex mt-auto justify-center items-center text-4xl no-underline cursor-pointer" class="flex mt-auto mb-4 justify-center items-center text-4xl no-underline cursor-pointer"
> >
<CogIcon width="30" height="30" class="fill-gray-200 hover:fill-gray-500" /> <CogIcon width="30" height="30" class="fill-gray-200 hover:fill-gray-500" />
</Link> </Link>
{#if isDevelopment} {#if isDevelopment}
<button class="text-8px text-red-500 mt-8 mb-4" on:click={() => location.reload()}>Refresh</button> <button class="text-8px text-red-500 my-4" on:click={() => location.reload()}>Refresh</button>
{/if} {/if}
</aside> </aside>

View File

@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import { onMount } from "svelte"; import { onMount } from "svelte";
import Logo from "~/../../assets/icons/logo.svg"; import Logo from "~/../../electron/assets/icons/logo.svg";
let version = ""; let version = "";