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 33d3a10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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
2 changes: 1 addition & 1 deletion src/briefcase/platforms/linux/appimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def project_path(self, app):

def binary_name(self, app):
safe_name = app.formal_name.replace(" ", "_")
return f"{safe_name}-{app.version}-{self.tools.host_arch}.AppImage"
return f"{safe_name}-{app.version}-{self.tools.linuxdeploy.arch}.AppImage"

def binary_path(self, app):
return self.bundle_path(app) / self.binary_name(app)
Expand Down

0 comments on commit 33d3a10

Please sign in to comment.