mirror of
https://github.com/Alvin-Zilverstand/Twitter-X-Media-Batch-Downloader.git
synced 2026-12-02 11:01:25 +01:00
v4.7
This commit is contained in:
1 parent
e05a9379fc
commit
c42808431c
31 files changed
+3187
-2798
No files matched your search
@@ -144,8 +144,11 @@ func getExtractorAssetName() (string, error) {
|
||||
return "windows-amd64.zip", nil
|
||||
}
|
||||
case "linux":
|
||||
if runtime.GOARCH == "amd64" {
|
||||
switch runtime.GOARCH {
|
||||
case "amd64":
|
||||
return "linux-amd64.zip", nil
|
||||
case "arm64":
|
||||
return "linux-arm64.zip", nil
|
||||
}
|
||||
case "darwin":
|
||||
switch resolveMacOSExtractorArch(runtime.GOARCH, detectMacOSHardwareArch()) {
|
||||
@@ -172,7 +175,6 @@ func detectMacOSHardwareArch() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// On Apple Silicon, this stays "1" even if the app itself runs under Rosetta.
|
||||
cmd := exec.Command("sysctl", "-in", "hw.optional.arm64")
|
||||
hideWindow(cmd)
|
||||
output, err := cmd.Output()
|
||||
|
||||
Reference in new issue
Block a user