cmd/fpkg: include nixGL source in inner store
All checks were successful
Tests / Go tests (push) Successful in 34s
Nix / NixOS tests (push) Successful in 4m24s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2024-12-29 23:37:11 +09:00
parent 56a73bb019
commit f8d0786509
3 changed files with 16 additions and 2 deletions

View File

@@ -40,6 +40,8 @@ type bundleInfo struct {
// allow gpu access within sandbox
GPU bool `json:"gpu"`
// store path to nixGL source
NixGL string `json:"nix_gl,omitempty"`
// store path to activate-and-exec script
Launcher string `json:"launcher"`
// store path to /run/current-system

View File

@@ -98,7 +98,8 @@ func actionInstall(args []string) {
if app != bundle {
// do not try to re-install
if app.CurrentSystem == bundle.CurrentSystem &&
if app.NixGL == bundle.NixGL &&
app.CurrentSystem == bundle.CurrentSystem &&
app.Launcher == bundle.Launcher &&
app.ActivationPackage == bundle.ActivationPackage {
cleanup()