fix(ci): reuse Linux binary for AppImage packaging

This commit is contained in:
NimBold
2026-07-30 03:16:37 +03:30
parent 4e504b8e74
commit 31cf4a1c50
5 changed files with 220 additions and 11 deletions
+20
View File
@@ -0,0 +1,20 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { APPIMAGE_CONFIG, appImageBundleArguments } from './build-linux-appimage.js';
test('AppImage config removes only engine-dist from Tauri resources', () => {
assert.deepEqual(JSON.parse(APPIMAGE_CONFIG), {
bundle: {
resources: {
'engine-dist/': null,
},
},
});
});
test('AppImage bundling uses the existing binary instead of tauri build', () => {
const args = appImageBundleArguments('x86_64-unknown-linux-gnu');
assert.equal(args[3], 'bundle');
assert.equal(args.includes('build'), false);
assert.deepEqual(args.slice(-2), ['--config', APPIMAGE_CONFIG]);
});