Skip to content

Commit

Permalink
Packaging: restore operating system name in final executables (#329)
Browse files Browse the repository at this point in the history
Because names are used in upgrade command to retrieve the matching
operating system release's asset.

I've created an issue in the GitHub Action used to publish to GitHub
Release to set label property:
softprops/action-gh-release#394
  • Loading branch information
Guts committed Nov 8, 2023
2 parents 141f072 + 97d2036 commit 8e389bf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion builder/pyinstaller_build_macos.py
Expand Up @@ -39,7 +39,7 @@

# variables
output_filename = (
f"{__about__.__title_clean__}_{__about__.__version__.replace('.', '-')}"
f"MacOS_{__about__.__title_clean__}_{__about__.__version__.replace('.', '-')}"
)
package_folder = Path("qgis_deployment_toolbelt")

Expand Down
2 changes: 1 addition & 1 deletion builder/pyinstaller_build_ubuntu.py
Expand Up @@ -42,7 +42,7 @@

# variables
output_filename = (
f"{__about__.__title_clean__}_{__about__.__version__.replace('.', '-')}"
f"Ubuntu_{__about__.__title_clean__}_{__about__.__version__.replace('.', '-')}"
)
package_folder = Path("qgis_deployment_toolbelt")

Expand Down
2 changes: 1 addition & 1 deletion builder/pyinstaller_build_windows.py
Expand Up @@ -40,7 +40,7 @@

# variables
output_filename = (
f"{__about__.__title_clean__}_{__about__.__version__.replace('.', '-')}"
f"Windows_{__about__.__title_clean__}_{__about__.__version__.replace('.', '-')}"
)
package_folder = Path("qgis_deployment_toolbelt")

Expand Down
2 changes: 1 addition & 1 deletion docs/development/packaging.md
Expand Up @@ -4,7 +4,7 @@

The project takes advantage of [PyInstaller](https://pyinstaller.readthedocs.io/) to package the application into an executable.

The output binary and all embedded dependencies is located into a subfolder named: `dist/QGISDeploymentToolbelt_{version}`. A file named `build_environment_report.txt` containing build environment information is generated at the project's root.
The output binary and all embedded dependencies is located into a subfolder named `dist`: `dist/{operating_system}_QGISDeploymentToolbelt_{version}`, where operating system is one of `MacOS`, `Ubuntu`or `Windows`. A file named `build_environment_report.txt` containing build environment information is generated at the project's root.

### Windows

Expand Down

0 comments on commit 8e389bf

Please sign in to comment.