start working on Firefox manager side

This commit is contained in:
idk
2022-07-14 16:34:08 -04:00
parent 59026ee653
commit c37b7db32c
2 changed files with 20 additions and 8 deletions

View File

@ -26,7 +26,7 @@ func NewFirefoxDownloader(lang string, os, arch string, content *embed.FS) *FFDo
return &FFDownloader{
Lang: lang,
DownloadPath: DOWNLOAD_FIREFOX_PATH(),
UnpackPath: UNPACK_PATH(),
UnpackPath: UNPACK_FIREFOX_PATH(),
OS: os,
ARCH: arch,
Verbose: false,
@ -35,12 +35,18 @@ func NewFirefoxDownloader(lang string, os, arch string, content *embed.FS) *FFDo
}
}
// DOWNLOAD_PATH returns the path to the downloads.
// DOWNLOAD_FIREFOX_PATH returns the path to the downloads.
func DOWNLOAD_FIREFOX_PATH() string {
var DOWNLOAD_PATH = filepath.Join(DefaultDir(), "firefox")
return DOWNLOAD_PATH
}
// UNPACK_FIREFOX_PATH returns the path to the unpacked files.
func UNPACK_FIREFOX_PATH() string {
var UNPACK_FIREFOX_PATH = filepath.Join(DefaultDir(), "unpack-firefox")
return UNPACK_FIREFOX_PATH
}
func (t FFDownloader) GetRuntimePair() string {
tbd := TBDownloader(t)
return tbd.GetRuntimePair()
@ -262,3 +268,8 @@ func (t *FFDownloader) BoolCheckFirefoxSignature(binpath, sigpath string) bool {
_, err := t.CheckFirefoxSignature(binpath, sigpath)
return err == nil
}
func (t FFDownloader) MakeTBDirectory() {
tbd := TBDownloader(t)
tbd.MakeTBDirectory()
}