Update meson (#647)

* Update meson

* update

* Use build_always_stale instead of manually defining files to track.

* Clean up tsconfig
This commit is contained in:
Jas Singh
2024-12-28 03:48:52 -08:00
committed by GitHub
parent ba7e0dfd52
commit a7b553725c
7 changed files with 35 additions and 49 deletions

View File

@@ -28,11 +28,13 @@ export function ensureFile(path: string): void {
}
}
const dataDir = typeof DATADIR !== 'undefined' ? DATADIR : SRC;
Object.assign(globalThis, {
CONFIG: `${GLib.get_user_config_dir()}/hyprpanel/config.json`,
TMP: `${GLib.get_tmp_dir()}/hyprpanel`,
USER: GLib.get_user_name(),
SRC_DIR: GLib.getenv('HYPRPANEL_DATADIR') ?? SRC,
SRC_DIR: dataDir,
});
ensureDirectory(TMP);