From 54c419804c82dd707cb2814492ebe493fb23a509 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Thu, 20 Jun 2024 01:23:22 +0100 Subject: [PATCH 1/5] ci: adding main_vite_api_url --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0e18043..817ee00f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,7 @@ jobs: env: MAIN_VITE_ONLINEFIX_USERNAME: ${{ secrets.ONLINEFIX_USERNAME }} MAIN_VITE_ONLINEFIX_PASSWORD: ${{ secrets.ONLINEFIX_PASSWORD }} + MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build Windows @@ -36,6 +37,7 @@ jobs: env: MAIN_VITE_ONLINEFIX_USERNAME: ${{ secrets.ONLINEFIX_USERNAME }} MAIN_VITE_ONLINEFIX_PASSWORD: ${{ secrets.ONLINEFIX_PASSWORD }} + MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create artifact From 5944fc5c4b77200b5d72bca2a71fa872d221c1e7 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Thu, 20 Jun 2024 01:24:43 +0100 Subject: [PATCH 2/5] ci: adding main_vite_api_url --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 817ee00f..69ee8b6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Build -on: [pull_request] +on: [pull_request, push] jobs: build: From 33c827d6ec3fe2d673c3f13d8a858f3e2901b729 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Thu, 20 Jun 2024 01:25:23 +0100 Subject: [PATCH 3/5] ci: adding main_vite_api_url --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2612e737..d38f1993 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,6 @@ name: Lint -on: [pull_request] +on: [pull_request, push] jobs: lint: From 884ba47b9b274d547aeb99c1246d67d2453e7d38 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Thu, 20 Jun 2024 01:30:38 +0100 Subject: [PATCH 4/5] ci: adding main_vite_api_url --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69ee8b6e..cff61910 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Build -on: [pull_request, push] +on: pull_request jobs: build: From 6b3158673476ec929cd2e9179afce5218220b614 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Wed, 19 Jun 2024 23:01:16 -0300 Subject: [PATCH 5/5] fix: images not loading with local protocol --- src/main/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 10399beb..760b8283 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -53,8 +53,8 @@ app.whenReady().then(async () => { electronApp.setAppUserModelId("site.hydralauncher.hydra"); protocol.handle("local", (request) => { - const filePath = request.url.slice("local://".length); - return net.fetch(url.pathToFileURL(filePath).toString()); + const filePath = request.url.slice("local:".length); + return net.fetch(url.pathToFileURL(decodeURI(filePath)).toString()); }); await dataSource.initialize();