Skip to content

Commit

Permalink
Add script to check ASAR size
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Oct 11, 2024
1 parent 9c8cf0b commit 27167a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions bin/check-asar-size.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#npm run package-electron
git_root=$(git rev-parse --show-toplevel)
cd "$git_root/out/TriliumNext Notes-linux-x64/resources"
out_dir=app.asar.extracted
rm -rf "$out_dir"
mkdir "$out_dir"
npx @electron/asar e app.asar "$out_dir"
ncdu "$out_dir"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"test": "npm run test-jasmine && npm run test-es6",
"start-electron-forge": "npm run prepare-dist && electron-forge start",
"make-electron": "npm run webpack && npm run prepare-dist && electron-forge make",
"package-electron": "electron-forge package",
"package-electron": "npm run webpack && npm run prepare-dist && electron-forge package",
"prepare-dist": "rimraf ./dist && tsc && tsx ./bin/copy-dist.ts",
"update-build-info": "tsx bin/update-build-info.ts",
"errors": "tsc --watch --noEmit",
Expand Down

0 comments on commit 27167a0

Please sign in to comment.