mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 08:43:48 +03:00
chage fastlis.exe location to not conflict with linux build
This commit is contained in:
parent
02cce803ac
commit
4c644dfd90
@ -30,7 +30,6 @@ const config: ForgeConfig = {
|
|||||||
executableName: "Hydra",
|
executableName: "Hydra",
|
||||||
extraResource: [
|
extraResource: [
|
||||||
"./resources/hydra.db",
|
"./resources/hydra.db",
|
||||||
"./resources/fastlist.exe",
|
|
||||||
"./resources/icon_tray.png",
|
"./resources/icon_tray.png",
|
||||||
"./resources/dist",
|
"./resources/dist",
|
||||||
],
|
],
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
import shutil
|
import shutil
|
||||||
import platform
|
import platform
|
||||||
|
import os
|
||||||
|
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
shutil.copy("node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe", "resources/fastlist.exe")
|
if not os.path.exists("resources/dist"):
|
||||||
|
os.mkdir("resources/dist")
|
||||||
|
|
||||||
|
shutil.copy("node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe", "resources/dist/fastlist.exe")
|
||||||
|
@ -9,8 +9,8 @@ const execFile = promisify(childProcess.execFile);
|
|||||||
export const getProcesses = async (isPackaged: boolean) => {
|
export const getProcesses = async (isPackaged: boolean) => {
|
||||||
if (process.platform == "win32") {
|
if (process.platform == "win32") {
|
||||||
const binaryPath = isPackaged
|
const binaryPath = isPackaged
|
||||||
? path.join(process.resourcesPath, "fastlist.exe")
|
? path.join(process.resourcesPath, "dist", "fastlist.exe")
|
||||||
: path.join(__dirname, "..", "..", "resources", "fastlist.exe");
|
: path.join(__dirname, "..", "..", "resources", "dist", "fastlist.exe");
|
||||||
|
|
||||||
const { stdout } = await execFile(binaryPath, {
|
const { stdout } = await execFile(binaryPath, {
|
||||||
maxBuffer: TEN_MEGABYTES,
|
maxBuffer: TEN_MEGABYTES,
|
||||||
|
Loading…
Reference in New Issue
Block a user