Prepare for RPMs

This commit is contained in:
2023-01-17 13:49:36 +01:00
parent 15c9413276
commit daa8be67b3
3 changed files with 18 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
*~
TrimSPweb.js
TrimSP.cfg
ToDo.txt
#*
Readme.md
+6 -2
View File
@@ -1051,8 +1051,12 @@ function startSequence(All) {
if (!webOrApp) {
// Check if the trimspNL binary is found
if (!fileExists(trimBin)) {
// if not found, try in PATH and hope for the best
trimBin = "trimspNL";
// check if it is in rpm
trimBin = "/usr/lib/TrimSP/resources/app/trimspNL";
if (!fileExists(trimBin)) {
// if not found, try in PATH and hope for the best
trimBin = "trimspNL";
}
}
// Check if workPath exists otherwise create it
+6 -7
View File
@@ -12,11 +12,11 @@
"author": "Zaher Salman",
"license": "GPL2",
"devDependencies": {
"@electron-forge/cli": "^6.0.4",
"@electron-forge/maker-deb": "^6.0.4",
"@electron-forge/maker-rpm": "^6.0.4",
"@electron-forge/maker-squirrel": "^6.0.4",
"@electron-forge/maker-zip": "^6.0.4",
"@electron-forge/cli": "^6.0.0-beta.57",
"@electron-forge/maker-deb": "^6.0.0-beta.57",
"@electron-forge/maker-rpm": "^6.0.0-beta.57",
"@electron-forge/maker-squirrel": "^6.0.0-beta.57",
"@electron-forge/maker-zip": "^6.0.0-beta.57",
"electron": "^11.2.1"
},
"dependencies": {
@@ -26,8 +26,7 @@
"config": {
"forge": {
"packagerConfig": {
"icon": "./appicons/icons/png/1024x1024.png",
"extraResource" : "/usr/local/bin/trimspNL",
"icon": "appicons/icons/png/1024x1024.png"
},
"makers": [
{