added patches for replacing firefox logos
99
copy.go
Normal file
|
@ -0,0 +1,99 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
// applyCopyPatch handles `t:copy` type patches for copying and replacing files or directories
|
||||
func applyCopyPatch(inputPath, outputPath string) error {
|
||||
fmt.Printf("Copying from %s to %s\n", inputPath, outputPath)
|
||||
|
||||
// Check if the source exists
|
||||
info, err := os.Stat(inputPath)
|
||||
if os.IsNotExist(err) {
|
||||
return fmt.Errorf("input path does not exist: %s", inputPath)
|
||||
}
|
||||
|
||||
// Handle files and directories differently
|
||||
if info.IsDir() {
|
||||
// Copy a directory
|
||||
return copyDirectory(inputPath, outputPath)
|
||||
} else {
|
||||
// Copy a single file
|
||||
return copyFile(inputPath, outputPath, info.Mode())
|
||||
}
|
||||
}
|
||||
|
||||
// copyFile copies a single file and replaces the destination if it exists
|
||||
func copyFile(srcFilePath, dstFilePath string, fileMode os.FileMode) error {
|
||||
// Ensure the destination directory exists
|
||||
destDir := filepath.Dir(dstFilePath)
|
||||
if err := os.MkdirAll(destDir, os.ModePerm); err != nil {
|
||||
return fmt.Errorf("failed to create destination directory: %s", destDir)
|
||||
}
|
||||
|
||||
// Open source file
|
||||
srcFile, err := os.Open(srcFilePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to open source file: %s", srcFilePath)
|
||||
}
|
||||
defer srcFile.Close()
|
||||
|
||||
// Create destination file
|
||||
dstFile, err := os.Create(dstFilePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create destination file: %s", dstFilePath)
|
||||
}
|
||||
defer dstFile.Close()
|
||||
|
||||
// Copy contents from source to destination
|
||||
if _, err := io.Copy(dstFile, srcFile); err != nil {
|
||||
return fmt.Errorf("failed to copy file: %v", err)
|
||||
}
|
||||
|
||||
// Set file permissions
|
||||
if err := os.Chmod(dstFilePath, fileMode); err != nil {
|
||||
return fmt.Errorf("failed to set file permissions: %v", err)
|
||||
}
|
||||
|
||||
fmt.Printf("File copied: %s -> %s\n", srcFilePath, dstFilePath)
|
||||
return nil
|
||||
}
|
||||
|
||||
// copyDirectory copies the contents of a directory and replaces the destination if it exists
|
||||
func copyDirectory(srcDirPath, dstDirPath string) error {
|
||||
// Ensure the destination directory exists
|
||||
if err := os.MkdirAll(dstDirPath, os.ModePerm); err != nil {
|
||||
return fmt.Errorf("failed to create destination directory: %s", dstDirPath)
|
||||
}
|
||||
|
||||
// Walk through the directory and copy each file/directory
|
||||
return filepath.Walk(srcDirPath, func(path string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Compute the destination path
|
||||
relPath, err := filepath.Rel(srcDirPath, path)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to compute relative path: %v", err)
|
||||
}
|
||||
destPath := filepath.Join(dstDirPath, relPath)
|
||||
|
||||
if info.IsDir() {
|
||||
// Create the destination directory
|
||||
if err := os.MkdirAll(destPath, os.ModePerm); err != nil {
|
||||
return fmt.Errorf("failed to create directory: %s", destPath)
|
||||
}
|
||||
} else {
|
||||
// Copy the file
|
||||
if err := copyFile(path, destPath, info.Mode()); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
}
|
5
main.go
|
@ -154,8 +154,7 @@ func applyPatch(patchPath, rootPath string) error {
|
|||
return fmt.Errorf("patch file must specify output (o:) file")
|
||||
}
|
||||
|
||||
if patchType != "new" {
|
||||
// Replace the original file with the temporary file
|
||||
if patchType != "new" && patchType != "copy" {
|
||||
err = os.Rename(inputFilePath, outputFilePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to replace output file: %v", err)
|
||||
|
@ -170,6 +169,8 @@ func applyPatch(patchPath, rootPath string) error {
|
|||
return applyStandardModifications(outputFilePath, modifications)
|
||||
case "new":
|
||||
return applyNewModifications(outputFilePath, modifications)
|
||||
case "copy":
|
||||
return applyCopyPatch(inputFilePath, outputFilePath)
|
||||
default:
|
||||
fmt.Printf("Type not specified defaulting to standard")
|
||||
return applyStandardModifications(outputFilePath, modifications)
|
||||
|
|
BIN
pre-compile-patches/branding/PrivateBrowsing_150.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
pre-compile-patches/branding/PrivateBrowsing_70.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
pre-compile-patches/branding/VisualElements_150.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
pre-compile-patches/branding/VisualElements_70.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
pre-compile-patches/branding/background.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
pre-compile-patches/branding/content/about-logo-private.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
pre-compile-patches/branding/content/about-logo-private@2x.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
pre-compile-patches/branding/content/about-logo.png
Normal file
After Width: | Height: | Size: 26 KiB |
74
pre-compile-patches/branding/content/about-logo.svg
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg version="1.0" width="512" height="512" viewBox="0 0 530 530" id="svg167" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs id="defs7">
|
||||
<radialGradient gradientUnits="userSpaceOnUse" cx="254.9" cy="255.633" r="238.439" id="gradient-1">
|
||||
<stop offset="0" style="stop-color: rgb(1, 5, 11);" id="stop2"/>
|
||||
<stop offset="1" style="stop-color: rgb(11, 22, 36);" id="stop4"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<ellipse style="stroke: rgb(0, 0, 0); fill-rule: nonzero; paint-order: fill; fill: url('#gradient-1');" cx="254.9" cy="255.633" rx="238.439" ry="241.995" id="ellipse9"/>
|
||||
<path d="M 227.807 9.359 C 191.895 14.755 154.022 29.376 123.997 49.49 C 116.835 54.199 110.163 58.909 109.083 59.989 C 108.003 60.97 103.981 64.305 100.253 67.347 C 81.806 82.261 61.397 106.594 47.072 130.437 C 41.773 139.269 32.059 158.5 32.059 160.168 C 32.059 160.561 31.373 162.13 30.489 163.798 C 25.682 172.923 16.873 203.776 14.202 223.16 C 11.407 243.446 11.922 277.635 14.202 293.805 C 16.935 313.181 25.682 344.043 30.489 353.169 C 31.373 354.738 32.059 356.406 32.059 356.799 C 32.059 358.466 41.773 377.698 47.072 386.528 C 61.397 410.372 81.806 434.704 100.253 449.62 C 103.981 452.66 108.003 455.997 109.083 456.978 C 114.676 462.179 138.715 477.093 151.961 483.569 C 188.854 501.72 222.901 509.668 263.621 509.668 C 304.34 509.668 338.388 501.72 375.28 483.569 C 388.526 477.093 412.565 462.179 418.158 456.978 C 419.237 455.997 423.261 452.66 426.989 449.62 C 445.435 434.704 465.845 410.372 480.169 386.528 C 485.467 377.698 495.181 358.466 495.181 356.799 C 495.181 356.406 495.868 354.738 496.751 353.169 C 499.401 348.066 506.662 325.106 509.213 313.43 C 513.727 293.02 514.964 276.028 514.673 257.184 C 514.382 238.34 513.727 223.945 509.213 203.536 C 506.759 192.547 498.813 166.84 497.243 164.779 C 496.751 164.289 496.065 162.719 495.673 161.443 C 492.924 152.613 479.287 127.592 469.768 114.248 C 458.092 97.666 440.137 77.945 426.989 67.347 C 423.261 64.305 419.237 60.97 418.158 59.989 C 412.565 54.788 388.526 39.873 375.28 33.398 C 350.26 21.035 324.749 13.087 298.159 9.26 C 279.222 6.611 246.45 6.611 227.807 9.359 Z M 286.973 45.663 C 333.874 50.764 378.518 72.351 412.663 106.399 C 467.806 161.247 489.491 240.626 469.279 313.626 C 449.851 383.977 397.16 439.709 329.361 461.983 C 286.09 476.112 241.152 476.112 197.88 461.983 C 166.385 451.581 138.42 434.41 114.578 410.568 C 59.435 355.719 37.751 276.341 57.964 203.34 C 77.391 132.988 129.982 77.257 197.88 54.984 C 211.715 50.471 226.727 47.036 239.091 45.663 C 249.883 44.486 275.984 44.387 286.973 45.663 Z" style="fill: rgb(151, 151, 151); fill-opacity: 0.5;" id="path11"/>
|
||||
<path d="M 85.283 227.724 C 85.181 227.988 84.585 230.675 83.955 233.659 C 83.293 236.644 82.727 239.164 82.662 239.23 C 82.563 239.297 80.01 239.894 76.925 240.557 C 73.841 241.186 71.188 241.849 71.054 241.948 C 70.922 242.082 73.477 242.778 76.758 243.474 L 82.727 244.735 L 83.226 246.923 C 83.49 248.116 84.021 250.672 84.419 252.594 C 84.817 254.518 85.249 256.177 85.382 256.343 C 85.514 256.473 86.178 253.921 86.874 250.705 C 87.569 247.453 88.133 244.77 88.167 244.77 C 88.2 244.735 90.852 244.171 94.037 243.474 C 97.219 242.812 99.906 242.181 99.972 242.115 C 100.17 241.916 99.442 241.717 93.737 240.523 C 90.753 239.859 88.267 239.297 88.2 239.23 C 88.133 239.164 87.504 236.444 86.773 233.16 C 86.078 229.911 85.414 227.458 85.283 227.724 Z" style="fill:#ffffff;fill-opacity:0.79;stroke-width:1.45371" id="path47">
|
||||
<title id="title45">Star</title>
|
||||
</path>
|
||||
<path d="M 414.396 140.709 C 414.293 140.978 413.691 143.697 413.053 146.714 C 412.383 149.731 411.81 152.282 411.745 152.347 C 411.645 152.414 409.065 153.02 405.944 153.69 C 402.824 154.327 400.141 154.998 400.005 155.098 C 399.872 155.231 402.458 155.936 405.773 156.639 L 411.81 157.914 L 412.315 160.128 C 412.584 161.336 413.121 163.919 413.522 165.864 C 413.927 167.81 414.361 169.486 414.494 169.655 C 414.629 169.788 415.303 167.204 416.005 163.954 C 416.711 160.666 417.278 157.95 417.313 157.95 C 417.345 157.914 420.029 157.344 423.25 156.639 C 426.467 155.972 429.186 155.331 429.251 155.263 C 429.452 155.065 428.717 154.862 422.948 153.657 C 419.928 152.984 417.413 152.414 417.345 152.347 C 417.278 152.282 416.643 149.53 415.905 146.209 C 415.199 142.924 414.529 140.441 414.396 140.709 Z" style="fill:#ffffff;fill-opacity:0.76;stroke-width:2.95209" id="path59">
|
||||
<title id="title57">Star</title>
|
||||
</path>
|
||||
<path d="M 140.033 360.778 C 139.856 361.233 138.838 365.844 137.752 370.962 C 136.616 376.082 135.648 380.408 135.536 380.519 C 135.365 380.633 130.986 381.657 125.694 382.797 C 120.403 383.877 115.85 385.015 115.621 385.183 C 115.396 385.412 119.779 386.606 125.407 387.801 L 135.648 389.965 L 136.504 393.718 C 136.956 395.764 137.869 400.149 138.55 403.448 C 139.234 406.747 139.973 409.593 140.2 409.878 C 140.429 410.105 141.567 405.723 142.762 400.207 C 143.956 394.629 144.922 390.022 144.979 390.022 C 145.036 389.964 149.589 388.996 155.049 387.801 C 160.51 386.666 165.118 385.582 165.233 385.468 C 165.573 385.13 164.322 384.787 154.537 382.741 C 149.416 381.599 145.151 380.633 145.037 380.519 C 144.922 380.408 143.842 375.741 142.589 370.109 C 141.396 364.532 140.255 360.322 140.033 360.778 Z" style="fill:#ffffff;stroke-width:1.44624" id="path103">
|
||||
<title id="title101">Star</title>
|
||||
</path>
|
||||
<path d="M 138.29 153.186 C 138.122 153.62 137.152 158.016 136.117 162.894 C 135.034 167.775 134.11 171.898 134.004 172.005 C 133.841 172.114 129.667 173.09 124.622 174.176 C 119.577 175.206 115.238 176.291 115.019 176.451 C 114.805 176.669 118.984 177.808 124.347 178.946 L 134.11 181.009 L 134.927 184.587 C 135.358 186.537 136.228 190.718 136.877 193.862 C 137.529 197.007 138.234 199.72 138.45 199.992 C 138.668 200.208 139.753 196.031 140.892 190.773 C 142.03 185.455 142.952 181.064 143.005 181.064 C 143.06 181.009 147.401 180.085 152.605 178.946 C 157.811 177.864 162.203 176.832 162.314 176.723 C 162.638 176.4 161.445 176.073 152.117 174.123 C 147.235 173.035 143.169 172.114 143.06 172.005 C 142.952 171.898 141.922 167.45 140.728 162.081 C 139.59 156.765 138.502 152.752 138.29 153.186 Z" style="fill: rgb(255, 255, 255); stroke-width: 1.67174;" id="path103-3">
|
||||
<title id="title101-5">Star</title>
|
||||
</path>
|
||||
<path d="M 244.748 160.074 C 244.677 160.26 244.255 162.166 243.807 164.281 C 243.337 166.395 242.937 168.183 242.891 168.228 C 242.822 168.275 241.012 168.7 238.826 169.169 C 236.639 169.616 234.759 170.085 234.663 170.156 C 234.571 170.25 236.382 170.743 238.707 171.238 L 242.937 172.13 L 243.291 173.681 C 243.478 174.527 243.855 176.337 244.137 177.701 C 244.42 179.064 244.726 180.241 244.819 180.357 C 244.913 180.45 245.384 178.64 245.877 176.362 C 246.37 174.058 246.769 172.155 246.793 172.155 C 246.817 172.13 248.697 171.731 250.952 171.238 C 253.209 170.767 255.113 170.32 255.159 170.274 C 255.301 170.133 254.784 169.991 250.743 169.145 C 248.627 168.674 246.865 168.275 246.817 168.228 C 246.769 168.183 246.324 166.255 245.806 163.928 C 245.313 161.623 244.841 159.885 244.748 160.074 Z" style="fill:#ffffff;fill-opacity:0.6;stroke-width:1.596" id="path115">
|
||||
<title id="title113">Star</title>
|
||||
</path>
|
||||
<path d="M 364.521 243.081 C 364.352 243.523 363.365 247.979 362.318 252.927 C 361.218 257.874 360.281 262.055 360.175 262.164 C 360.009 262.274 355.779 263.264 350.662 264.364 C 345.548 265.411 341.148 266.51 340.926 266.673 C 340.707 266.893 344.946 268.049 350.386 269.202 L 360.281 271.292 L 361.112 274.92 C 361.547 276.897 362.431 281.137 363.089 284.327 C 363.75 287.514 364.465 290.265 364.684 290.541 C 364.903 290.76 366.003 286.524 367.159 281.194 C 368.312 275.801 369.246 271.348 369.303 271.348 C 369.359 271.292 373.758 270.358 379.035 269.202 C 384.315 268.105 388.767 267.059 388.877 266.946 C 389.209 266.62 388 266.288 378.54 264.311 C 373.592 263.208 369.469 262.274 369.359 262.164 C 369.246 262.054 368.203 257.545 366.993 252.099 C 365.84 246.71 364.737 242.643 364.521 243.081 Z" style="fill:#ffffff;fill-opacity:0.85;stroke-width:3.3228" id="path135">
|
||||
<title id="title133">Star</title>
|
||||
</path>
|
||||
<path d="M 316.604 77.643 C 316.356 78.291 314.913 84.783 313.388 91.999 C 311.785 99.209 310.422 105.301 310.261 105.462 C 310.021 105.624 303.854 107.069 296.394 108.674 C 288.939 110.199 282.526 111.802 282.202 112.038 C 281.879 112.356 288.064 114.043 295.994 115.727 L 310.422 118.774 L 311.629 124.057 C 312.262 126.942 313.557 133.124 314.511 137.777 C 315.476 142.418 316.518 146.433 316.835 146.833 C 317.158 147.154 318.759 140.976 320.445 133.206 C 322.129 125.348 323.486 118.855 323.574 118.855 C 323.655 118.774 330.066 117.409 337.757 115.727 C 345.456 114.124 351.947 112.598 352.105 112.431 C 352.591 111.958 350.828 111.477 337.036 108.597 C 329.824 106.985 323.809 105.624 323.655 105.462 C 323.486 105.301 321.967 98.727 320.201 90.792 C 318.526 82.937 316.912 77.005 316.604 77.643 Z" style="fill:#ffffff;stroke-width:2.13992" id="path143">
|
||||
<title id="title141">Star</title>
|
||||
</path>
|
||||
<path d="M 300.687 400.038 C 300.491 400.549 299.347 405.725 298.129 411.469 C 296.852 417.217 295.765 422.071 295.64 422.198 C 295.45 422.323 290.535 423.473 284.594 424.753 C 278.654 425.967 273.543 427.242 273.288 427.432 C 273.033 427.689 277.956 429.029 284.271 430.37 L 295.765 432.797 L 296.728 437.011 C 297.236 439.308 298.259 444.23 299.024 447.932 C 299.79 451.634 300.621 454.831 300.874 455.149 C 301.131 455.406 302.409 450.486 303.752 444.294 C 305.091 438.034 306.173 432.864 306.238 432.864 C 306.305 432.797 311.412 431.71 317.542 430.37 C 323.673 429.095 328.844 427.879 328.973 427.752 C 329.355 427.371 327.95 426.985 316.969 424.69 C 311.22 423.407 306.43 422.323 306.305 422.198 C 306.173 422.071 304.961 416.834 303.556 410.51 C 302.219 404.253 300.938 399.529 300.687 400.038 Z" style="fill: rgb(255, 255, 255); fill-opacity: 0.85; stroke-width: 1.64332;" id="path163">
|
||||
<title id="title161">Star</title>
|
||||
</path>
|
||||
<path d="M 222.565 6.215 C 186.653 11.611 148.78 26.232 118.755 46.346 C 111.593 51.055 104.921 55.765 103.841 56.845 C 102.761 57.826 98.739 61.161 95.011 64.203 C 76.564 79.117 56.155 103.45 41.83 127.293 C 36.531 136.125 26.817 155.356 26.817 157.024 C 26.817 157.417 26.131 158.986 25.247 160.654 C 20.44 169.779 11.631 200.632 8.96 220.016 C 6.165 240.302 6.68 274.491 8.96 290.661 C 11.693 310.037 20.44 340.899 25.247 350.025 C 26.131 351.594 26.817 353.262 26.817 353.655 C 26.817 355.322 36.531 374.554 41.83 383.384 C 56.155 407.228 76.564 431.56 95.011 446.476 C 98.739 449.516 102.761 452.853 103.841 453.834 C 109.434 459.035 133.473 473.949 146.719 480.425 C 183.612 498.576 217.659 506.524 258.379 506.524 C 299.098 506.524 333.146 498.576 370.038 480.425 C 383.284 473.949 407.323 459.035 412.916 453.834 C 413.995 452.853 418.019 449.516 421.747 446.476 C 440.193 431.56 460.603 407.228 474.927 383.384 C 480.225 374.554 489.939 355.322 489.939 353.655 C 489.939 353.262 490.626 351.594 491.509 350.025 C 494.159 344.922 501.42 321.962 503.971 310.286 C 508.485 289.876 509.722 272.884 509.431 254.04 C 509.14 235.196 508.485 220.801 503.971 200.392 C 501.517 189.403 493.571 163.696 492.001 161.635 C 491.509 161.145 490.823 159.575 490.431 158.299 C 487.682 149.469 474.045 124.448 464.526 111.104 C 452.85 94.522 434.895 74.801 421.747 64.203 C 418.019 61.161 413.995 57.826 412.916 56.845 C 407.323 51.644 383.284 36.729 370.038 30.254 C 345.018 17.891 319.507 9.943 292.917 6.116 C 273.98 3.467 241.208 3.467 222.565 6.215 Z M 281.731 42.519 C 328.632 47.62 373.276 69.207 407.421 103.255 C 462.564 158.103 484.249 237.482 464.037 310.482 C 444.609 380.833 391.918 436.565 324.119 458.839 C 280.848 472.968 235.91 472.968 192.638 458.839 C 161.143 448.437 133.178 431.266 109.336 407.424 C 54.193 352.575 32.509 273.197 52.722 200.196 C 72.149 129.844 124.74 74.113 192.638 51.84 C 206.473 47.327 221.485 43.892 233.849 42.519 C 244.641 41.342 270.742 41.243 281.731 42.519 Z" style="fill: rgb(255, 255, 255);" id="path165"/>
|
||||
<path d="M 175.502 88.808 C 175.399 89.077 174.797 91.796 174.159 94.813 C 173.489 97.83 172.916 100.381 172.851 100.446 C 172.751 100.513 170.171 101.119 167.05 101.789 C 163.93 102.426 161.247 103.097 161.111 103.197 C 160.978 103.33 163.564 104.035 166.879 104.738 L 172.916 106.013 L 173.421 108.227 C 173.69 109.435 174.227 112.018 174.628 113.963 C 175.033 115.909 175.467 117.585 175.6 117.754 C 175.735 117.887 176.409 115.303 177.111 112.053 C 177.817 108.765 178.384 106.049 178.419 106.049 C 178.451 106.013 181.135 105.443 184.356 104.738 C 187.573 104.071 190.292 103.43 190.357 103.362 C 190.558 103.164 189.823 102.961 184.054 101.756 C 181.034 101.083 178.519 100.513 178.451 100.446 C 178.384 100.381 177.749 97.629 177.011 94.308 C 176.305 91.023 175.635 88.54 175.502 88.808 Z" style="fill:#ffffff;fill-opacity:0.76;stroke-width:2.95209" id="path-1">
|
||||
<title id="bx-title-1">Star</title>
|
||||
</path>
|
||||
<path d="M 349.193 357.782 C 349.122 357.968 348.7 359.874 348.252 361.989 C 347.782 364.103 347.382 365.891 347.336 365.936 C 347.267 365.983 345.457 366.408 343.271 366.877 C 341.084 367.324 339.204 367.793 339.108 367.864 C 339.016 367.958 340.827 368.451 343.152 368.946 L 347.382 369.838 L 347.736 371.389 C 347.923 372.235 348.3 374.045 348.582 375.409 C 348.865 376.772 349.171 377.949 349.264 378.065 C 349.358 378.158 349.829 376.348 350.322 374.07 C 350.815 371.766 351.214 369.863 351.238 369.863 C 351.262 369.838 353.142 369.439 355.397 368.946 C 357.654 368.475 359.558 368.028 359.604 367.982 C 359.746 367.841 359.229 367.699 355.188 366.853 C 353.072 366.382 351.31 365.983 351.262 365.936 C 351.214 365.891 350.769 363.963 350.251 361.636 C 349.758 359.331 349.286 357.593 349.193 357.782 Z" style="fill:#ffffff;fill-opacity:0.6;stroke-width:1.596" id="path-2">
|
||||
<title id="bx-title-2">Star</title>
|
||||
</path>
|
||||
<g transform="matrix(1.041193, 0, 0, 1.041193, 61.918896, 39.964844)" style="">
|
||||
<path d="M119.985 296.48C196.931 250.092 252.478 177.83 304.291 106.439" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M94.3584 266.878C160.209 194.785 218.218 141.354 305.626 104.134" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M 220.538 175.864 C 227.807 173.414 239.436 169.773 245.804 165.493 C 316.946 117.677 234.841 125.352 219.933 175.696" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M215.786 310.095C171.822 267.474 129.727 222.353 88.8729 176.175" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M215.191 310.057C224.72 301.124 246.671 285.016 251.584 280.67" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M88.6389 173.195C102.357 161.863 121.529 145.114 131.278 134.347" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M228.824 295.746C231.422 265.501 232.03 235.172 232.287 204.994" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M198.41 167.395C170.904 163.492 143.297 157.823 116.462 151.647" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M 142.753 324.118 C 155.804 315.342 163.767 287.463 154.346 274.641" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M 69.277 242.976 C 81.488 219.258 103.792 227.738 122.971 236.494" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M136.848 323.161C129.928 316.504 122.914 309.468 119.14 300.605" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M91.589 266.442C84.6949 258.781 75.8473 253.012 70.5944 243.983" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M 116.469 295.895 C 108.996 293.432 98.159 279.204 94.702 273.008" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
<path d="M 103.347 284.367 C 105.326 282.616 91.016 296.07 92.945 294.362" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(151, 151, 151); stroke-opacity: 0.5;"/>
|
||||
</g>
|
||||
<g transform="matrix(1.041193, 0, 0, 1.041193, 58.021484, 35.155289)" style="">
|
||||
<path d="M119.985 296.48C196.931 250.092 252.478 177.83 304.291 106.439" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M94.3584 266.878C160.209 194.785 218.218 141.354 305.626 104.134" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M 220.538 175.864 C 227.807 173.414 239.436 169.773 245.804 165.493 C 316.946 117.677 234.841 125.352 219.933 175.696" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M215.786 310.095C171.822 267.474 129.727 222.353 88.8729 176.175" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M215.191 310.057C224.72 301.124 246.671 285.016 251.584 280.67" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M88.6389 173.195C102.357 161.863 121.529 145.114 131.278 134.347" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M228.824 295.746C231.422 265.501 232.03 235.172 232.287 204.994" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M198.41 167.395C170.904 163.492 143.297 157.823 116.462 151.647" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M 142.753 324.118 C 155.804 315.342 163.767 287.463 154.346 274.641" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M 69.277 242.976 C 81.488 219.258 103.792 227.738 122.971 236.494" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M136.848 323.161C129.928 316.504 122.914 309.468 119.14 300.605" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M91.589 266.442C84.6949 258.781 75.8473 253.012 70.5944 243.983" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M 116.469 295.895 C 108.996 293.432 98.159 279.204 94.702 273.008" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
<path d="M 103.347 284.367 C 105.326 282.616 91.016 296.07 92.945 294.362" stroke-width="16" stroke-linecap="round" stroke-linejoin="round" style="fill-opacity: 0; stroke: rgb(255, 255, 255); fill-rule: nonzero;"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 20 KiB |
BIN
pre-compile-patches/branding/content/about-logo@2x.png
Normal file
After Width: | Height: | Size: 64 KiB |
2
pre-compile-patches/branding/content/about-wordmark.svg
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="336" height="48" viewBox="0 0 336 48"/>
|
After Width: | Height: | Size: 125 B |
BIN
pre-compile-patches/branding/content/about.png
Normal file
After Width: | Height: | Size: 26 KiB |
32
pre-compile-patches/branding/content/document_pdf.svg
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M37.5 9.53728C37.5 9.26197 37.7226 9.03846 37.9979 9.03729L163.745 8.50263L218.5 62.7471V247.317C218.5 247.593 218.276 247.817 218 247.817H38C37.7239 247.817 37.5 247.593 37.5 247.317V9.53728Z" fill="#FAFAFA" stroke="#80808E" stroke-width="3"/>
|
||||
<g transform="matrix(1.20324, 0, 0, 1.20324, -11.74259, 13.154011)" style="">
|
||||
<path d="M 83.095 81.216 C 83.046 81.342 82.763 82.618 82.464 84.035 C 82.15 85.452 81.881 86.649 81.85 86.68 C 81.803 86.712 80.591 86.996 79.126 87.311 C 77.661 87.609 76.401 87.924 76.337 87.971 C 76.275 88.035 77.488 88.365 79.046 88.696 L 81.881 89.295 L 82.118 90.334 C 82.243 90.9 82.496 92.114 82.685 93.027 C 82.874 93.941 83.079 94.729 83.142 94.807 C 83.205 94.869 83.52 93.657 83.85 92.13 C 84.18 90.586 84.448 89.311 84.464 89.311 C 84.48 89.295 85.74 89.027 87.252 88.696 C 88.763 88.382 90.039 88.082 90.071 88.051 C 90.165 87.956 89.819 87.862 87.11 87.295 C 85.693 86.979 84.512 86.712 84.48 86.68 C 84.448 86.649 84.15 85.357 83.802 83.798 C 83.472 82.255 83.157 81.09 83.095 81.216 Z" style="fill-opacity: 0.79; stroke-width: 1.45371; fill: rgb(207, 207, 216);" id="path47">
|
||||
<title id="title45">Star</title>
|
||||
</path>
|
||||
<path d="M 99.704 25.568 C 99.655 25.696 99.369 26.987 99.066 28.42 C 98.748 29.853 98.476 31.064 98.445 31.095 C 98.398 31.127 97.172 31.415 95.69 31.733 C 94.208 32.036 92.934 32.354 92.87 32.402 C 92.806 32.465 94.035 32.8 95.609 33.134 L 98.476 33.739 L 98.716 34.791 C 98.843 35.364 99.098 36.591 99.289 37.515 C 99.481 38.439 99.687 39.235 99.751 39.315 C 99.815 39.378 100.135 38.151 100.468 36.608 C 100.803 35.046 101.073 33.756 101.089 33.756 C 101.104 33.739 102.379 33.468 103.909 33.134 C 105.437 32.817 106.728 32.512 106.759 32.48 C 106.854 32.386 106.505 32.29 103.765 31.717 C 102.331 31.398 101.137 31.127 101.104 31.095 C 101.073 31.064 100.771 29.758 100.421 28.18 C 100.085 26.62 99.767 25.441 99.704 25.568 Z" style="fill-opacity: 0.76; stroke-width: 2.95209; fill: rgb(207, 207, 216);" id="path59">
|
||||
<title id="title57">Star</title>
|
||||
</path>
|
||||
<path d="M 62.553 43.217 C 62.473 43.423 62.013 45.511 61.521 47.827 C 61.007 50.145 60.568 52.103 60.518 52.154 C 60.44 52.206 58.458 52.669 56.062 53.185 C 53.666 53.674 51.606 54.189 51.502 54.265 C 51.4 54.369 53.385 54.91 55.931 55.45 L 60.568 56.43 L 60.956 58.129 C 61.161 59.055 61.574 61.041 61.882 62.534 C 62.192 64.028 62.526 65.316 62.629 65.445 C 62.733 65.548 63.248 63.564 63.789 61.067 C 64.329 58.541 64.767 56.456 64.792 56.456 C 64.818 56.43 66.88 55.991 69.351 55.45 C 71.824 54.936 73.909 54.446 73.962 54.395 C 74.116 54.241 73.549 54.086 69.12 53.16 C 66.801 52.643 64.87 52.206 64.818 52.154 C 64.767 52.103 64.278 49.991 63.711 47.441 C 63.17 44.916 62.654 43.011 62.553 43.217 Z" style="stroke-width: 1.67174; fill: rgb(207, 207, 216);" id="path103-3">
|
||||
<title id="title101-5">Star</title>
|
||||
</path>
|
||||
<path d="M 163.955 182.579 C 163.922 182.667 163.721 183.572 163.509 184.577 C 163.285 185.581 163.095 186.43 163.074 186.451 C 163.041 186.474 162.181 186.675 161.143 186.898 C 160.104 187.11 159.212 187.333 159.166 187.367 C 159.122 187.412 159.982 187.646 161.087 187.881 L 163.095 188.304 L 163.263 189.041 C 163.352 189.443 163.531 190.302 163.665 190.95 C 163.8 191.597 163.945 192.156 163.989 192.211 C 164.034 192.256 164.257 191.396 164.492 190.314 C 164.726 189.22 164.915 188.316 164.927 188.316 C 164.938 188.304 165.831 188.115 166.902 187.881 C 167.974 187.657 168.878 187.445 168.9 187.423 C 168.967 187.356 168.722 187.289 166.802 186.887 C 165.798 186.663 164.961 186.474 164.938 186.451 C 164.915 186.43 164.704 185.514 164.458 184.409 C 164.224 183.315 164 182.489 163.955 182.579 Z" style="fill-opacity: 0.6; stroke-width: 1.596; fill: rgb(207, 207, 216);" id="path115">
|
||||
<title id="title113">Star</title>
|
||||
</path>
|
||||
<path d="M 127.018 58.734 C 126.933 58.958 126.432 61.218 125.901 63.727 C 125.344 66.237 124.869 68.356 124.814 68.412 C 124.73 68.467 122.586 68.969 119.99 69.528 C 117.397 70.058 115.165 70.616 115.053 70.698 C 114.942 70.81 117.092 71.396 119.85 71.981 L 124.869 73.041 L 125.29 74.881 C 125.511 75.883 125.959 78.033 126.292 79.651 C 126.628 81.268 126.991 82.662 127.102 82.802 C 127.213 82.913 127.77 80.766 128.356 78.062 C 128.94 75.327 129.415 73.069 129.443 73.069 C 129.472 73.041 131.703 72.567 134.379 71.981 C 137.056 71.424 139.314 70.895 139.37 70.837 C 139.539 70.671 138.925 70.503 134.128 69.501 C 131.619 68.941 129.528 68.467 129.472 68.412 C 129.415 68.356 128.886 66.069 128.272 63.308 C 127.688 60.575 127.128 58.512 127.018 58.734 Z" style="fill-opacity: 0.85; stroke-width: 3.3228; fill: rgb(207, 207, 216);" id="path135">
|
||||
<title id="title133">Star</title>
|
||||
</path>
|
||||
<path d="M 155.405 25.261 C 155.303 25.527 154.712 28.184 154.088 31.138 C 153.433 34.089 152.874 36.582 152.809 36.648 C 152.71 36.714 150.186 37.306 147.132 37.963 C 144.081 38.587 141.456 39.243 141.323 39.339 C 141.191 39.469 143.723 40.161 146.968 40.849 L 152.874 42.096 L 153.368 44.259 C 153.627 45.44 154.157 47.97 154.548 49.875 C 154.943 51.774 155.369 53.418 155.499 53.582 C 155.631 53.713 156.287 51.184 156.977 48.004 C 157.666 44.787 158.221 42.13 158.257 42.13 C 158.291 42.096 160.915 41.538 164.063 40.849 C 167.214 40.193 169.871 39.569 169.936 39.5 C 170.135 39.307 169.413 39.11 163.767 37.931 C 160.815 37.272 158.354 36.714 158.291 36.648 C 158.221 36.582 157.6 33.891 156.877 30.644 C 156.191 27.428 155.53 25 155.405 25.261 Z" style="stroke-width: 2.13992; fill: rgb(207, 207, 216);" id="path143">
|
||||
<title id="title141">Star</title>
|
||||
</path>
|
||||
<path d="M 168.909 77.513 C 168.86 77.641 168.574 78.932 168.271 80.365 C 167.953 81.798 167.681 83.009 167.65 83.04 C 167.603 83.072 166.378 83.36 164.895 83.678 C 163.414 83.981 162.139 84.299 162.075 84.347 C 162.012 84.41 163.24 84.745 164.814 85.079 L 167.681 85.684 L 167.921 86.736 C 168.049 87.309 168.304 88.536 168.494 89.46 C 168.686 90.384 168.893 91.18 168.956 91.26 C 169.02 91.323 169.34 90.096 169.673 88.553 C 170.009 86.991 170.278 85.701 170.295 85.701 C 170.31 85.684 171.584 85.413 173.114 85.079 C 174.642 84.762 175.933 84.457 175.964 84.425 C 176.059 84.331 175.71 84.235 172.971 83.662 C 171.536 83.343 170.342 83.072 170.31 83.04 C 170.278 83.009 169.976 81.703 169.626 80.125 C 169.291 78.565 168.972 77.386 168.909 77.513 Z" style="fill-opacity: 0.76; stroke-width: 2.95209; fill: rgb(207, 207, 216);" id="path-1">
|
||||
<title id="bx-title-1">Star</title>
|
||||
</path>
|
||||
</g>
|
||||
<rect x="28" y="136" width="200" height="100" fill="#FF0000"/>
|
||||
<rect x="29.5" y="137.5" width="197" height="97" stroke="black" stroke-opacity="0.25" stroke-width="3"/>
|
||||
<path d="M65.4878 194.342V213.441H53V158H72.5629C86.5327 158 93.5176 163.889 93.5176 175.668C93.5176 181.236 91.5072 185.746 87.4864 189.2C83.4913 192.628 78.1431 194.342 71.4417 194.342H65.4878ZM65.4878 167.588V184.87H70.3978C77.0477 184.87 80.3726 181.957 80.3726 176.132C80.3726 170.436 77.0477 167.588 70.3978 167.588H65.4878Z" fill="white"/>
|
||||
<path d="M107.767 213.441V158H127.407C147.099 158 156.945 167.008 156.945 185.025C156.945 193.659 154.251 200.554 148.864 205.709C143.503 210.864 136.351 213.441 127.407 213.441H107.767ZM120.255 168.168V203.312H126.441C131.853 203.312 136.093 201.688 139.16 198.44C142.253 195.193 143.8 190.772 143.8 185.179C143.8 179.896 142.266 175.746 139.199 172.73C136.158 169.689 131.879 168.168 126.363 168.168H120.255Z" fill="white"/>
|
||||
<path d="M203.051 168.624H183.488V182.233H201.466V192.362H183.488V213.897H171V158.456H203.051V168.624Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 7.6 KiB |
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="172" height="42"/>
|
After Width: | Height: | Size: 104 B |
BIN
pre-compile-patches/branding/default128.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
pre-compile-patches/branding/default16.png
Normal file
After Width: | Height: | Size: 904 B |
BIN
pre-compile-patches/branding/default22.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
pre-compile-patches/branding/default24.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
pre-compile-patches/branding/default256.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
pre-compile-patches/branding/default32.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
pre-compile-patches/branding/default48.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
pre-compile-patches/branding/default64.png
Normal file
After Width: | Height: | Size: 6 KiB |
BIN
pre-compile-patches/branding/disk.icns
Normal file
BIN
pre-compile-patches/branding/document.icns
Normal file
BIN
pre-compile-patches/branding/document.ico
Normal file
After Width: | Height: | Size: 264 KiB |
BIN
pre-compile-patches/branding/document_pdf.ico
Normal file
After Width: | Height: | Size: 264 KiB |
BIN
pre-compile-patches/branding/firefox.icns
Normal file
BIN
pre-compile-patches/branding/firefox.ico
Normal file
After Width: | Height: | Size: 264 KiB |
BIN
pre-compile-patches/branding/firefox64.ico
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
pre-compile-patches/branding/pbmode.ico
Normal file
After Width: | Height: | Size: 275 KiB |
BIN
pre-compile-patches/branding/stubinstaller/bgstub.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
pre-compile-patches/branding/wizHeader.bmp
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
pre-compile-patches/branding/wizHeaderRTL.bmp
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
pre-compile-patches/branding/wizWatermark.bmp
Normal file
After Width: | Height: | Size: 201 KiB |
3
pre-compile-patches/logo-replace copy.patch
Normal file
|
@ -0,0 +1,3 @@
|
|||
t: copy
|
||||
i: /patcher/pre-compile-patches/branding
|
||||
o: /browser/branding/official
|
3
pre-compile-patches/logo-replace-nightly.patch
Normal file
|
@ -0,0 +1,3 @@
|
|||
t: copy
|
||||
i: /patcher/pre-compile-patches/branding
|
||||
o: /browser/branding/nightly
|
3
pre-compile-patches/logo-replace-unofficial.patch
Normal file
|
@ -0,0 +1,3 @@
|
|||
t: copy
|
||||
i: /patcher/pre-compile-patches/branding
|
||||
o: /browser/branding/unofficial
|
3
pre-compile-patches/logo-replace.patch
Normal file
|
@ -0,0 +1,3 @@
|
|||
t: copy
|
||||
i: /patcher/pre-compile-patches/branding
|
||||
o: /browser/branding/official
|
26
pre-compile-patches/logo-stop-updates-nightly.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
t: pref
|
||||
i: /browser/branding/nightly/pref/firefox-branding.js
|
||||
o: /browser/branding/nightly/pref/firefox-branding.js
|
||||
|
||||
+// Disable updates
|
||||
+pref("app.update.enabled", false);
|
||||
+pref("app.update.auto", false);
|
||||
+pref("app.update.checkInstallTime", false);
|
||||
|
||||
+// Redirect update URLs to prevent fetching updates
|
||||
+pref("app.update.url.manual", "https://localhost");
|
||||
+pref("app.update.url.details", "https://localhost");
|
||||
+pref("app.releaseNotesURL", "https://localhost");
|
||||
+pref("app.releaseNotesURL.aboutDialog", "https://localhost");
|
||||
|
||||
+// Disable welcome and update pages
|
||||
+pref("startup.homepage_override_url", "");
|
||||
+pref("startup.homepage_welcome_url", "");
|
||||
+pref("startup.homepage_welcome_url.additional", "");
|
||||
|
||||
+// Prevent update prompts
|
||||
+pref("app.update.promptWaitTime", 0);
|
||||
+pref("app.update.badgeWaitTime", 0);
|
||||
|
||||
+// Lock branding-related preferences (if applicable)
|
||||
+pref("browser.startup.homepage", "about:blank");
|
26
pre-compile-patches/logo-stop-updates-unofficial.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
t: pref
|
||||
i: /browser/branding/unofficial/pref/firefox-branding.js
|
||||
o: /browser/branding/unofficial/pref/firefox-branding.js
|
||||
|
||||
+// Disable updates
|
||||
+pref("app.update.enabled", false);
|
||||
+pref("app.update.auto", false);
|
||||
+pref("app.update.checkInstallTime", false);
|
||||
|
||||
+// Redirect update URLs to prevent fetching updates
|
||||
+pref("app.update.url.manual", "https://localhost");
|
||||
+pref("app.update.url.details", "https://localhost");
|
||||
+pref("app.releaseNotesURL", "https://localhost");
|
||||
+pref("app.releaseNotesURL.aboutDialog", "https://localhost");
|
||||
|
||||
+// Disable welcome and update pages
|
||||
+pref("startup.homepage_override_url", "");
|
||||
+pref("startup.homepage_welcome_url", "");
|
||||
+pref("startup.homepage_welcome_url.additional", "");
|
||||
|
||||
+// Prevent update prompts
|
||||
+pref("app.update.promptWaitTime", 0);
|
||||
+pref("app.update.badgeWaitTime", 0);
|
||||
|
||||
+// Lock branding-related preferences (if applicable)
|
||||
+pref("browser.startup.homepage", "about:blank");
|
2
run.sh
|
@ -41,7 +41,7 @@ if [[ ! -d "$PATCHES_SOURCE" ]]; then
|
|||
fi
|
||||
|
||||
# Run the Go application with the specified path and patches
|
||||
go run main.go pref.go standard.go new.go --path "$ROOT_PATH" --patches "$PATCHES_SOURCE"
|
||||
go run main.go pref.go standard.go new.go copy.go --path "$ROOT_PATH" --patches "$PATCHES_SOURCE"
|
||||
|
||||
# Exit with the status of the last command
|
||||
exit $?
|
||||
|
|