Skip to content

Commit

Permalink
branched
Browse files Browse the repository at this point in the history
  • Loading branch information
Seshpenguin committed Feb 23, 2023
1 parent d942ce4 commit d83a2da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -5,6 +5,7 @@ Nightly Alpine packages for Plasma Mobile from master/main and postmarketOS imag

### Environment Variables
- BUILD_SINGLE_PACKAGE = string: (build a single package from repo.ts)
- BUILD_SINGLE_PACKAGE_BRANCH = string: (select a branch from the git repo)
- PACKAGE_LIST = string,string,string...: (build the list of packages)
- IGNORE_GIT_SILENT = true/false: (build packages even if the last commit was GIT_SILENT)
- DISTCC_SETTINGS = true/false: (build packages using distcc env)
5 changes: 3 additions & 2 deletions src/index.ts
Expand Up @@ -124,9 +124,10 @@ async function buildPackage(pkg: Package) {
// check if rebuilding is necessary by compare rev-parse of local and remote
try {
exec(`git -C ${pkgDir}/src/${pkg.name} fetch`);
let branch = process.env.BUILD_SINGLE_PACKAGE_BRANCH ?? "kf5";
try {
exec(`git -C ${pkgDir}/src/${pkg.name} checkout kf5`);
console.log("🔧 -> Using kf5 branch");
exec(`git -C ${pkgDir}/src/${pkg.name} checkout ` + branch);
console.log("🔧 -> Using " + branch + " branch");
} catch {
console.log("🔧 -> Using master branch");
}
Expand Down

0 comments on commit d83a2da

Please sign in to comment.