Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
fix: proper extension for all generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Apr 28, 2024
1 parent 85b33d6 commit 1b2125a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on: # yamllint disable-line rule:truthy
push:
paths:
- config/**
- generators/**
- modules/**
- .github/workflows/build.yml
pull_request:
Expand Down
8 changes: 4 additions & 4 deletions generators/main.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ const function genImage(base: String, nvidia: Boolean, fx: Boolean): recipes.Ima
`base-image` = "\(meta.image.base)/\(base)\(if (nvidia) "-nvidia" else "-main")"
`image-version` = "latest"
modules = new Listing {
...(bbmodules.genImportModule("\(meta.module_prefix)/shared", ".yaml", meta.modules.shared))
...?(if(nvidia) null else bbmodules.genImportModule("\(meta.module_prefix)/amd", ".yaml", meta.modules.amd))
...?(if(base == "silverblue") bbmodules.genImportModule("\(meta.module_prefix)/gnome", ".yaml", meta.modules.gnome) else bbmodules.genImportModule("\(meta.module_prefix)/plasma", ".yml", meta.modules.plasma))
...?(if(fx) bbmodules.genImportModule("\(meta.module_prefix)/fx", ".yaml", meta.modules.fx) else null)
...(bbmodules.genImportModule("\(meta.module_prefix)/shared", filePrefix, meta.modules.shared))
...?(if(nvidia) null else bbmodules.genImportModule("\(meta.module_prefix)/amd", filePrefix, meta.modules.amd))
...?(if(base == "silverblue") bbmodules.genImportModule("\(meta.module_prefix)/gnome", filePrefix, meta.modules.gnome) else bbmodules.genImportModule("\(meta.module_prefix)/plasma", filePrefix, meta.modules.plasma))
...?(if(fx) bbmodules.genImportModule("\(meta.module_prefix)/fx", filePrefix, meta.modules.fx) else null)
}
}

Expand Down

0 comments on commit 1b2125a

Please sign in to comment.