Bundle icon image on linux

This commit is contained in:
luboslenco
2025-02-11 12:38:52 +01:00
parent 16ade92895
commit 2ad8adafc1
+5 -1
View File
@@ -17,10 +17,10 @@ flags.with_iron = true;
flags.with_eval = true;
let project = new Project("Base");
let dir = flags.name.toLowerCase();
{
project.add_define("IDLE_SLEEP");
let dir = flags.name.toLowerCase();
if (graphics === "vulkan") {
project.add_project("../armorcore/tools/to_spirv");
@@ -66,6 +66,10 @@ project.add_assets("assets/licenses/**", { destination: "data/licenses/{name}" }
project.add_assets("assets/plugins/*", { destination: "data/plugins/{name}" });
project.add_assets("assets/themes/*.json", { destination: "data/themes/{name}" });
if (platform === "linux" && fs_exists(os_cwd() + "/icon.png")) {
project.add_assets("../" + dir + "/icon.png", { destination: "{name}", noprocessing: true });
}
if (flags.embed) {
project.add_define("WITH_EMBED");
project.add_define("arm_embed");