Skip to content

Commit

Permalink
plasma 5.27 temp
Browse files Browse the repository at this point in the history
  • Loading branch information
Seshpenguin committed Mar 2, 2023
1 parent 2c06063 commit d9debd0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/index.ts
Expand Up @@ -129,6 +129,17 @@ async function buildPackage(pkg: Package) {
try {
exec(`git -C ${pkgDir}/src/${pkg.name} fetch`);
try {
// temp until plasma 6 works
// Plasma/5.27
exec(`git -C ${pkgDir}/src/${pkg.name} checkout ` + "Plasma/5.27");
console.log("🔧 -> Using Plasma 5.27" + " branch");
} catch {
console.log("🔧 -> Using master branch?");
}
try {
// temp until plasma 6 works
// Plasma/5.27

exec(`git -C ${pkgDir}/src/${pkg.name} checkout ` + branch);
console.log("🔧 -> Using " + branch + " branch");
} catch {
Expand Down Expand Up @@ -162,6 +173,14 @@ async function buildPackage(pkg: Package) {
}

// check if the "kf5" branch exists, if so, use it
try {
// temp until plasma 6 works
// Plasma/5.27
exec(`git -C ${pkgDir}/src/${pkg.name} checkout ` + "Plasma/5.27");
console.log("🔧 -> Using Plasma 5.27" + " branch");
} catch {
console.log("🔧 -> Using master branch?");
}
try {
exec(`git -C ${pkgDir}/src/${pkg.name} checkout ${branch}`);
console.log("🔧 -> Using " + branch + " branch");
Expand Down

0 comments on commit d9debd0

Please sign in to comment.