mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-14 13:22:37 +00:00
fix(desktop): show the Paseo window icon on Linux (#6645)
Packaged windows read resources/icon.png, but Linux packages only installed desktop-entry icons. Include the runtime PNG and verify its bytes in the existing packaged artifact smoke test. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Ivan Pantic <panta@talentkit.io> Co-authored-by: Max Höhl <43786929+whme@users.noreply.github.com>
This commit is contained in:
co-authored by
Ivan Pantic
Max Höhl
parent
b3693b79d1
commit
b852ae920b
@@ -848,6 +848,11 @@ async function assertSandboxState({ browser, page, expectedSandbox, stdout, stde
|
||||
|
||||
function assertLinuxDesktopIdentity(appPath) {
|
||||
if (process.platform === "linux") {
|
||||
assert.deepEqual(
|
||||
fs.readFileSync(path.join(appPath, "resources", "icon.png")),
|
||||
fs.readFileSync(path.join(__dirname, "..", "assets", "icon.png")),
|
||||
"Packaged Linux windows must have the Paseo icon at their runtime lookup path",
|
||||
);
|
||||
const metadata = JSON.parse(
|
||||
extractFile(path.join(appPath, "resources", "app.asar"), "package.json").toString(),
|
||||
);
|
||||
|
||||
@@ -65,6 +65,8 @@ linux:
|
||||
extraResources:
|
||||
- from: bin/paseo
|
||||
to: bin/paseo
|
||||
- from: assets/icon.png
|
||||
to: icon.png
|
||||
target:
|
||||
- AppImage
|
||||
- deb
|
||||
|
||||
Reference in New Issue
Block a user