changed to mozilla-release

This commit is contained in:
partisan 2025-01-18 11:48:30 +01:00
parent 8de4db960a
commit c4693c4b14
3 changed files with 9 additions and 7 deletions

2
.gitignore vendored
View file

@ -1,4 +1,6 @@
/mozilla-central
/mozilla-release
/.vscode
/patches
/packages.json
/packages_temp.json

10
main.go
View file

@ -32,8 +32,8 @@ var (
platform string
upload bool
uploadPath string
sourceRepo = "https://hg.mozilla.org/mozilla-central"
patchesRepo = "https://weforge.xyz/Spitfire/Browser.git"
sourceRepo = "https://hg.mozilla.org/releases/mozilla-release"
patchesRepo = "https://weforge.xyz/Spitfire/Patcher.git"
url = "https://spitfirebrowser.xyz/"
licence = "AGPL-3.0"
name = "Spitfire"
@ -69,7 +69,7 @@ func init() {
func printHelp() {
fmt.Println("Usage: go run . -p=<path-to-build> -t=<target> [-c|--compress] [-v|--version=<version>] [-component=<component>] [-arch=<architecture>] [-release=<release>] [-platform=<platform>]")
flag.PrintDefaults()
fmt.Println("Example: go run . --upload -c --upload-path=./mozilla-central/obj-x86_64-pc-linux-gnu/dist/bin -a")
fmt.Println("Example: go run . --upload -c --upload-path=./mozilla-release/obj-x86_64-pc-linux-gnu/dist/bin -a")
os.Exit(0)
}
@ -116,7 +116,7 @@ func main() {
if compress || upload {
// Resolve the build directory dynamically
fmt.Println("Resolving build directory dynamically...")
sourcePath, err := spitfire.ResolvePath("./mozilla-central")
sourcePath, err := spitfire.ResolvePath("./mozilla-release")
if err != nil {
log.Fatalf("Error resolving source path: %v", err)
}
@ -146,7 +146,7 @@ func main() {
// Update the BuildProcess function to pass patchesRepo
func BuildProcess() {
sourcePath, err := spitfire.ResolvePath("./mozilla-central")
sourcePath, err := spitfire.ResolvePath("./mozilla-release")
if err != nil {
log.Fatalf("Error resolving source path: %v", err)
}

View file

@ -41,9 +41,9 @@ func CheckDependencies() error {
}
// Special check for `mach` in the local source directory
machPath := filepath.Join("mozilla-central", "mach")
machPath := filepath.Join("mozilla-release", "mach")
if !fileExists(machPath) {
missingTools = append(missingTools, "mach (ensure you are in the mozilla-central directory)")
missingTools = append(missingTools, "mach (ensure you are in the mozilla-release directory)")
}
// Report missing tools if any