inskea 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/scripts/postinstall.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inskea",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Inskea - infinite-canvas vector illustration app",
|
|
5
5
|
"bin": {
|
|
6
6
|
"inskea": "bin/inskea.js"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"preuninstall": "node scripts/preuninstall.js"
|
|
11
11
|
},
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@quippy/inskea-linux-x64": "2.
|
|
14
|
-
"@quippy/inskea-win32-x64": "2.
|
|
13
|
+
"@quippy/inskea-linux-x64": "2.2.0",
|
|
14
|
+
"@quippy/inskea-win32-x64": "2.2.0"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"inskea",
|
package/scripts/postinstall.js
CHANGED
|
@@ -38,11 +38,14 @@ function installLinux() {
|
|
|
38
38
|
} catch (_) {}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
//
|
|
41
|
+
// Write .desktop file pointing directly to this package's runner script
|
|
42
42
|
const desktopSrc = path.join(assetsDir, 'inskea.desktop');
|
|
43
43
|
const desktopDest = path.join(appsDir, 'inskea.desktop');
|
|
44
44
|
if (fs.existsSync(desktopSrc)) {
|
|
45
|
-
|
|
45
|
+
const runnerScript = path.resolve(__dirname, '..', 'bin', 'inskea.js');
|
|
46
|
+
let desktopContent = fs.readFileSync(desktopSrc, 'utf8');
|
|
47
|
+
desktopContent = desktopContent.replace(/^Exec=inskea %F$/m, `Exec="${runnerScript}" %F`);
|
|
48
|
+
fs.writeFileSync(desktopDest, desktopContent, 'utf8');
|
|
46
49
|
try {
|
|
47
50
|
execSync(`update-desktop-database "${appsDir}"`, { stdio: 'ignore' });
|
|
48
51
|
} catch (_) {}
|