Skip to content

Commit

Permalink
Detecting arch from arch tool
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Aug 6, 2024
1 parent 176900c commit 597ff15
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions FastFlix_Nix_OneFile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ from PyInstaller.utils.hooks import collect_submodules
import toml
import os
import platform
from subprocess import check_output

block_cipher = None

Expand Down Expand Up @@ -40,16 +41,8 @@ a = Analysis(['fastflix/__main__.py'],
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)


print("Platform Name:", platform.platform())

arch = "i386"
if 'arm64' in platform.platform():
arch = "arm64"
elif 'x86_64' in platform.platform():
arch = "x86_64"

print("Target Arch:", arch)
arch = check_output("/usr/bin/arch").decode().strip()
print("Arch output:", arch)

exe = EXE(pyz,
a.scripts,
Expand Down

0 comments on commit 597ff15

Please sign in to comment.