Skip to content

Commit bea6989

Browse files
committed
appimagetoolPath
1 parent cb34dd8 commit bea6989

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

build/after-build.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,16 @@ async function processAppImage() {
7878

7979
// Repackage AppImage with proper naming
8080
console.log('Repackaging AppImage...');
81-
const appimagetoolPath = path.join(__dirname, '..', 'bin', 'appimagetool-x86_64.AppImage');
81+
let appimagetoolPath = path.join(__dirname, '..', 'bin', 'appimagetool-x86_64.AppImage');
82+
83+
// Check bin directory first (for local builds), then root directory (for CI)
84+
if (!fs.existsSync(appimagetoolPath)) {
85+
appimagetoolPath = path.join(__dirname, '..', 'appimagetool-x86_64.AppImage');
86+
}
8287

8388
if (fs.existsSync(appimagetoolPath)) {
84-
console.log('Using appimagetool from bin directory');
89+
const toolLocation = appimagetoolPath.includes('bin') ? 'bin directory' : 'root directory';
90+
console.log(`Using appimagetool from ${toolLocation}`);
8591
// Create the new filename with proper casing and version
8692
const newAppImageName = `Emulsion-${version}-x86_64.AppImage`;
8793
execSync(`"${appimagetoolPath}" squashfs-root "${newAppImageName}"`, { stdio: 'inherit' });
@@ -95,7 +101,7 @@ async function processAppImage() {
95101
console.warn('Failed to remove appimagetool-x86_64.AppImage:', error.message);
96102
}
97103
} else {
98-
console.log('appimagetool not found in bin directory, skipping repackaging');
104+
console.log('appimagetool not found in bin directory or root directory, skipping repackaging');
99105
}
100106

101107
console.log('AppImage processing complete');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "emulsion",
3-
"version": "0.10.27",
3+
"version": "0.10.28",
44
"summary": "Better gaming throught chemistry",
55
"description": "Display your games collection into responsive galleries, manage game metadata, cover art and emulator configuration. Launch your games in style.",
66
"homepage": "https://yphil.gitlab.io/emulsion",

0 commit comments

Comments
 (0)