Skip to content

Commit

Permalink
fix: 🩹 wp binary path
Browse files Browse the repository at this point in the history
  • Loading branch information
kiomarzsss committed Apr 26, 2024
1 parent 23f2d13 commit 2f49d9a
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 5 deletions.
Binary file removed assets/icons/1024x1024.png
Binary file not shown.
Binary file removed assets/icons/128x128.png
Binary file not shown.
Binary file removed assets/icons/16x16.png
Binary file not shown.
Binary file removed assets/icons/24x24.png
Binary file not shown.
Binary file removed assets/icons/256x256.png
Binary file not shown.
Binary file removed assets/icons/32x32.png
Binary file not shown.
Binary file removed assets/icons/48x48.png
Binary file not shown.
Binary file removed assets/icons/512x512.png
Binary file not shown.
Binary file removed assets/icons/64x64.png
Binary file not shown.
Binary file removed assets/icons/96x96.png
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"type": "git",
"url": "git+https://github.com/kiomarzsss/oblivion-desktop.git"
},
"license": "MIT",
"license": "Restrictive",
"main": "./src/main/main.ts",
"scripts": {
"build": "concurrently \"npm run build:main\" \"npm run build:renderer\"",
"build": "ts-node script/dlWp.ts && concurrently \"npm run build:main\" \"npm run build:renderer\"",
"build:dll": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts",
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",
"build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts",
Expand Down Expand Up @@ -172,7 +172,7 @@
"dist",
"node_modules",
"package.json",
"assets/"
"assets/bin"
],
"afterSign": ".erb/scripts/notarize.js",
"mac": {
Expand Down
5 changes: 3 additions & 2 deletions src/main/ipcListeners/wp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ ipcMain.on('wp-start', async (event, arg) => {
// https://stackoverflow.com/questions/55328916/electron-run-shell-commands-with-arguments
let binPath = '';
if (platform === 'win32') {
binPath = path.join('assets', 'warp-plus.exe');
binPath = path.join('assets', 'bin', 'warp-plus.exe');
} else {
binPath = path.join('assets', 'warp-plus');
binPath = path.join('assets', 'bin', 'warp-plus');
}
// TODO read flags from settings
console.log('🚀 - ipcMain.on - binPath:', binPath);
wp = spawn(binPath);

// TODO better approach
Expand Down

0 comments on commit 2f49d9a

Please sign in to comment.