Skip to content

Commit

Permalink
migrate postinstall from py to js
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamitto committed Apr 27, 2024
1 parent 3b26d9f commit bf218e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
postinstall.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"publish": "electron-forge publish",
"lint": "eslint .",
"format": "prettier . --write",
"postinstall": "python3 ./postinstall.py"
"postinstall": "node ./postinstall.js"
},
"devDependencies": {
"@electron-forge/cli": "^7.3.0",
Expand Down
9 changes: 9 additions & 0 deletions postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const fs = require("fs")

if (process.platform === "win32"){
if (!fs.existsSync("resources/dist")) {
fs.mkdirSync("resources/dist")
}

fs.copyFileSync("node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe", "resources/dist/fastlist.exe")
}
9 changes: 0 additions & 9 deletions postinstall.py

This file was deleted.

0 comments on commit bf218e9

Please sign in to comment.