Skip to content

Commit

Permalink
Support i386 for AppImage
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Jul 14, 2023
1 parent 15d150e commit ede56e6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/briefcase/integrations/linuxdeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ def download_url(self) -> str:
def file_path(self) -> Path:
"""The folder on the local filesystem that contains the file_name."""

@property
def arch(self):
"""Return architecture for LinuxDeploy."""
return {"i686": "i386"}.get(self.tools.host_arch, self.tools.host_arch)

def exists(self) -> bool:
return (self.file_path / self.file_name).is_file()

Expand Down Expand Up @@ -208,7 +213,7 @@ class LinuxDeployQtPlugin(LinuxDeployPluginBase, ManagedTool):

@property
def file_name(self) -> str:
return f"linuxdeploy-plugin-qt-{self.tools.host_arch}.AppImage"
return f"linuxdeploy-plugin-qt-{self.arch}.AppImage"

@property
def download_url(self) -> str:
Expand Down Expand Up @@ -319,7 +324,7 @@ def file_path(self) -> Path:

@property
def file_name(self) -> str:
return f"linuxdeploy-{self.tools.host_arch}.AppImage"
return f"linuxdeploy-{self.arch}.AppImage"

@property
def download_url(self) -> str:
Expand Down

0 comments on commit ede56e6

Please sign in to comment.