mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-06 17:38:06 +00:00
fix(ci): reuse Linux binary for AppImage packaging
This commit is contained in:
@@ -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]);
|
||||
});
|
||||
Reference in New Issue
Block a user