clean up
This commit is contained in:
parent
66f4191c5f
commit
44d20eb983
10 changed files with 319 additions and 72 deletions
12
README.md
12
README.md
|
@ -47,9 +47,9 @@ func main() {
|
|||
}
|
||||
|
||||
// -- Download --
|
||||
// spm.AutoDownloadSpecified(specs) downloads specified packages to temp dir and decompresses them, making them ready for install by running "spm.AutoInstallUpdates()".
|
||||
// spm.DownloadSpecified(specs) downloads specified packages to temp dir and decompresses them, making them ready for install by running "spm.InstallUpdates()".
|
||||
fmt.Println("Starting download and decompression...")
|
||||
if err := spm.AutoDownloadSpecified(specs); err != nil {
|
||||
if err := spm.DownloadSpecified(specs); err != nil {
|
||||
fmt.Println("Error downloading packages:", err)
|
||||
return
|
||||
}
|
||||
|
@ -57,15 +57,15 @@ func main() {
|
|||
fmt.Println("Download complete. Proceeding with installation...")
|
||||
|
||||
// -- Install --
|
||||
// Install and Download are separate as you cannot replace running binaries on Windows. So the final move to the correct folder is done by "spm.AutoInstallUpdates()".
|
||||
if err := spm.AutoInstallUpdates(); err != nil {
|
||||
// Install and Download are separate as you cannot replace running binaries on Windows. So the final move to the correct folder is done by "spm.InstallUpdates()".
|
||||
if err := spm.InstallUpdates(); err != nil {
|
||||
fmt.Println("Error during installation:", err)
|
||||
return
|
||||
}
|
||||
|
||||
// -- Register --
|
||||
// spm.RegisterApp() is primarily used to modify the Windows registry so it recognizes Spitfire Browser as an installed program.
|
||||
// You shouldn’t need to run it more than once during installation. Also this function requires administrative privileges on Windows to work correctly.
|
||||
// spm.RegisterApp() is primarily used to modify the Windows registry so it recognizes Spitfire Browser as an installed program.
|
||||
// You shouldn’t need to run it more than once during installation. Also this function requires administrative privileges on Windows to work correctly.
|
||||
if err := spm.RegisterApp(); err != nil {
|
||||
fmt.Println("Error registering app:", err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue