feat: add nix support

merged #25, thank you so much @conroy-cheers!
this will likely fix #16
This commit is contained in:
João Dias
2025-11-09 10:16:15 -03:00
committed by GitHub
9 changed files with 442 additions and 6 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
// thanks Aylur!!
import "/usr/share/ags/js/lib/overrides";
import "ags/overrides";
import "./config";
import {
PluginApps,
@@ -168,7 +168,7 @@ you should use the socket in the XDG_RUNTIME_DIR/colorshell.sock for a faster re
private init(): void {
// load gresource from build-defined path
try {
this.#gresource = Gio.Resource.load(GRESOURCES_FILE.split('/').filter(s =>
const gresourcesPath: string = GRESOURCES_FILE.startsWith('/') ? GRESOURCES_FILE : (GRESOURCES_FILE.split('/').filter(s =>
s !== ""
).map(path => {
// support environment variables at runtime
@@ -179,9 +179,9 @@ you should use the socket in the XDG_RUNTIME_DIR/colorshell.sock for a faster re
return env;
}
return path;
}).join('/'));
this.#gresource = Gio.Resource.load(gresourcesPath);
Gio.resources_register(this.#gresource);
// add icons