From 67a39f423d6c22dbfca4d810f3599c38ec7e4bde Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" <mrstallion@nobody.nowhere.fauxdomain.ext> Date: Sun, 3 Sep 2023 15:29:02 -0700 Subject: [PATCH] minor --- electron/pack.js | 2 +- electron/release-scripts/windows-canary.sh | 2 ++ electron/release-scripts/windows.sh | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/electron/pack.js b/electron/pack.js index d3e146a..d71385d 100644 --- a/electron/pack.js +++ b/electron/pack.js @@ -67,7 +67,7 @@ require('electron-packager')({ for (const appPath of appPaths) { console.log('WinAppPath', appPath); - const appArch = appPath.match(/F-Chat-windows-([a-zA-Z0-9]+)$/)[1]; + const appArch = appPath.match(/F-Chat-win32-([a-zA-Z0-9]+)$/)[1]; const appArchLong = appArch === 'x64' ? 'x86_64' : 'aarch64'; const setupName = `F-Chat-Rising-Setup-win-${appArch}.exe`; const distFinal = path.join(distDir, appArch); diff --git a/electron/release-scripts/windows-canary.sh b/electron/release-scripts/windows-canary.sh index da94532..15fd386 100644 --- a/electron/release-scripts/windows-canary.sh +++ b/electron/release-scripts/windows-canary.sh @@ -2,6 +2,8 @@ DIST_PATH="${HOME}/fchat-rising/electron/dist" +export NODE_OPTIONS=--openssl-legacy-provider + cd "${HOME}/fchat-rising" git checkout canary git pull diff --git a/electron/release-scripts/windows.sh b/electron/release-scripts/windows.sh index b5448ca..af9e368 100644 --- a/electron/release-scripts/windows.sh +++ b/electron/release-scripts/windows.sh @@ -6,6 +6,8 @@ then exit 1 fi +export NODE_OPTIONS=--openssl-legacy-provider + RELEASE_VERSION="${1}" RELEASE_PATH="${HOME}/fchat-rising-dist/${RELEASE_VERSION}" DIST_PATH="${HOME}/fchat-rising/electron/dist"