Skip to content

Commit

Permalink
fix asar problem
Browse files Browse the repository at this point in the history
  • Loading branch information
leyafo committed Sep 26, 2023
1 parent 511fd27 commit 0a9c529
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ module.exports = async function () {
},
files: [
'packages/**/dist/**',
"libsimple/",
"icons/",
],
extraResources: [
"libsimple/"
],
extraMetadata: {
version: getVersion(),
},
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"build:main": "cd ./packages/main && vite build",
"build:preload": "cd ./packages/preload && vite build",
"build:renderer": "vite build --config ./packages/renderer/vite.config.js",
"compile": "cross-env MODE=production npm run build && electron-builder build --config .electron-builder.config.js --dir --config.asar=false",
"pack":"DEBUG=electron-builder cross-env MODE=production electron-builder build --config .electron-builder.config.js --dir --config.asar=false",
"compile": "cross-env MODE=production npm run build && electron-builder build --config .electron-builder.config.js --dir",
"watch": "node scripts/watch.mjs",
"lint": "eslint . --ext js,mjs,cjs,vue",
"postinstall": "cross-env ELECTRON_RUN_AS_NODE=1 electron scripts/update-electron-vendors.mjs",
Expand Down
2 changes: 2 additions & 0 deletions packages/main/src/config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ function getUserDataPath() {
}

function getExtensionPath(appDir){
//get the same resource dir
appDir = path.dirname(appDir);
if(os.platform == "win32"){
return path.join(appDir, "libsimple", "libsimple.dll")
}else{
Expand Down
Binary file modified slippod.db
Binary file not shown.

0 comments on commit 0a9c529

Please sign in to comment.