Skip to content

Commit 42c7b6d

Browse files
committed
CI: appimagetool
1 parent a57a72f commit 42c7b6d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ jobs:
2828
sudo apt-get update
2929
sudo apt-get install -y npm cmake libsdl2-dev libarchive-tools
3030
npm install
31+
curl -L -o appimagetool-x86_64.AppImage https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
32+
chmod +x appimagetool-x86_64.AppImage
3133
3234
- name: Build Linux packages
3335
run: |
3436
npx electron-builder --config build/builder.yml --linux --publish=never
3537
36-
- name: Rename AppImage
38+
- name: Process AppImage
3739
run: |
38-
mv -v "dist/emulsion_x86_64.AppImage" "dist/Emulsion-${{ github.ref_name }}-x86_64.AppImage"
40+
node build/after-build.js
3941
4042
- name: Upload Linux artifacts
4143
uses: actions/upload-artifact@v4

build/after-build.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,16 @@ async function processAppImage() {
7676
});
7777
}
7878

79-
// Repackage AppImage
79+
// Repackage AppImage with proper naming
8080
console.log('Repackaging AppImage...');
8181
const appimagetoolPath = path.join(__dirname, '..', 'bin', 'appimagetool-x86_64.AppImage');
8282

8383
if (fs.existsSync(appimagetoolPath)) {
8484
console.log('Using appimagetool from bin directory');
85-
execSync(`"${appimagetoolPath}" squashfs-root "${appImageName}"`, { stdio: 'inherit' });
85+
// Create the new filename with proper casing and version
86+
const newAppImageName = `Emulsion-${version}-x86_64.AppImage`;
87+
execSync(`"${appimagetoolPath}" squashfs-root "${newAppImageName}"`, { stdio: 'inherit' });
88+
console.log(`AppImage repackaged as: ${newAppImageName}`);
8689
} else {
8790
console.log('appimagetool not found in bin directory, skipping repackaging');
8891
}

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