mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-08-27 20:36:32 -04:00
Announce current stage during all tweaks mode
This commit is contained in:
@@ -43,6 +43,7 @@ func main() {
|
||||
fmt.Println("\n" + partitionR + " is already mounted on " + mountPoint)
|
||||
os.Exit(1)
|
||||
} else {
|
||||
allTweaksAnnounce("pre-mount tweaks")
|
||||
premount()
|
||||
}
|
||||
|
||||
@@ -51,6 +52,7 @@ func main() {
|
||||
}
|
||||
fallthrough
|
||||
case 3:
|
||||
allTweaksAnnounce("universal tweaks")
|
||||
mountPartition()
|
||||
universalTweaks()
|
||||
|
||||
@@ -59,6 +61,7 @@ func main() {
|
||||
}
|
||||
fallthrough
|
||||
case 4:
|
||||
allTweaksAnnounce("system tweaks")
|
||||
mountPartition()
|
||||
system()
|
||||
|
||||
@@ -67,6 +70,7 @@ func main() {
|
||||
}
|
||||
fallthrough
|
||||
case 5:
|
||||
allTweaksAnnounce("removals")
|
||||
mountPartition()
|
||||
removals()
|
||||
|
||||
@@ -75,6 +79,7 @@ func main() {
|
||||
}
|
||||
fallthrough
|
||||
case 6:
|
||||
allTweaksAnnounce("application installs")
|
||||
mountPartition()
|
||||
applications()
|
||||
|
||||
@@ -83,6 +88,7 @@ func main() {
|
||||
}
|
||||
fallthrough
|
||||
case 7:
|
||||
allTweaksAnnounce("configurations")
|
||||
mountPartition()
|
||||
configurations()
|
||||
|
||||
@@ -91,6 +97,7 @@ func main() {
|
||||
}
|
||||
fallthrough
|
||||
case 8:
|
||||
allTweaksAnnounce("cosmic tweaks")
|
||||
mountPartition()
|
||||
cosmic()
|
||||
// TODO window decoration position (not yet implemented)
|
||||
@@ -101,6 +108,7 @@ func main() {
|
||||
}
|
||||
fallthrough
|
||||
case 9:
|
||||
allTweaksAnnounce("firmware selection")
|
||||
firmwareSelector()
|
||||
}
|
||||
if !performAllTweaks {
|
||||
|
||||
@@ -4,7 +4,6 @@ import (
|
||||
"github.com/rwinkhart/go-boilerplate/front"
|
||||
)
|
||||
|
||||
// TODO remove unneeded linux-firmware packages!
|
||||
func removals() {
|
||||
for {
|
||||
var choice int
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
@@ -101,3 +102,9 @@ func mkdir(path string) {
|
||||
other.PrintError("Failed to set ownership of \""+path+"\"", 1)
|
||||
}
|
||||
}
|
||||
|
||||
func allTweaksAnnounce(stage string) {
|
||||
if performAllTweaks {
|
||||
fmt.Println("Performing " + stage + "...")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user