Skip to content

Commit 4257ce5

Browse files
committed
AppImage
- The __original untouched AppImage__ (`emulsion_x86_64.AppImage`) gets renamed to `Emulsion-${version}-x86_64.AppImage` - The __processed/repackaged AppImage__ gets named `Emulsion-no-install_x86_64.AppImage`
1 parent 64ab881 commit 4257ce5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

build/after-build.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ async function processAppImage() {
8888
if (fs.existsSync(appimagetoolPath)) {
8989
const toolLocation = appimagetoolPath.includes('bin') ? 'bin directory' : 'root directory';
9090
console.log(`Using appimagetool from ${toolLocation}`);
91-
// Create the new filename with proper casing and version
92-
const newAppImageName = `Emulsion-${version}-x86_64.AppImage`;
93-
execSync(`"${appimagetoolPath}" squashfs-root "${newAppImageName}"`, { stdio: 'inherit' });
94-
console.log(`AppImage repackaged as: ${newAppImageName}`);
91+
// Create the new filename for the processed AppImage
92+
const processedAppImageName = `Emulsion-no-install_x86_64.AppImage`;
93+
execSync(`"${appimagetoolPath}" squashfs-root "${processedAppImageName}"`, { stdio: 'inherit' });
94+
console.log(`AppImage repackaged as: ${processedAppImageName}`);
9595

9696
// Remove the appimagetool binary after successful repackaging
9797
try {
@@ -106,12 +106,12 @@ async function processAppImage() {
106106

107107
console.log('AppImage processing complete');
108108

109-
// Rename the untouched AppImage file
110-
const renamedAppImageName = 'Emulsion-no-install_x86_64.AppImage';
111-
const renamedAppImagePath = path.join(distDir, renamedAppImageName);
109+
// Rename the untouched AppImage file to the versioned name
110+
const untouchedAppImageName = `Emulsion-${version}-x86_64.AppImage`;
111+
const untouchedAppImagePath = path.join(distDir, untouchedAppImageName);
112112

113-
console.log(`Renaming ${appImageName} to ${renamedAppImageName}`);
114-
fs.renameSync(appImagePath, renamedAppImagePath);
113+
console.log(`Renaming ${appImageName} to ${untouchedAppImageName}`);
114+
fs.renameSync(appImagePath, untouchedAppImagePath);
115115

116116
} catch (error) {
117117
console.error('Error processing AppImage:', error.message);

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.31",
3+
"version": "0.10.32",
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)