-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from zevlee/add-readme
Add README.md
- Loading branch information
Showing
1 changed file
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Hello World Qt | ||
This repository is an easily configurable build system for distributing Python-based Qt applications. First, [PyInstaller](https://github.com/pyinstaller/pyinstaller) is used to assemble the application directory. Then, a packaging program is used to bundle everything into a self-contained application. | ||
|
||
* On Windows, [NSIS](https://nsis.sourceforge.io) is used. | ||
* On macOS, the built-in hdiutil is used. | ||
* On Linux, [AppImageKit](https://github.com/AppImage/AppImageKit) is used. | ||
|
||
The releases section contains the result of using this repo as-is. | ||
|
||
### Building on Windows | ||
1. MSYS2 is needed to build on Windows. [Get it from the MSYS2 website.](https://www.msys2.org/) | ||
2. Go to your folder for MSYS2 and run ``mingw64.exe``. The following commands will be executed in the console that appears. | ||
3. Install git. | ||
``` | ||
pacman -S git | ||
``` | ||
4. Clone this repository. | ||
``` | ||
git clone https://github.com/zevlee/hello-world-qt.git | ||
``` | ||
5. Enter the ``windows`` directory. | ||
``` | ||
cd hello-world-qt/windows | ||
``` | ||
6. Run ``bootstrap.sh`` to install any missing dependencies. | ||
``` | ||
chmod +x bootstrap.sh && ./bootstrap.sh | ||
``` | ||
7. Run ``build.sh``. | ||
``` | ||
chmod +x build.sh && ./build.sh | ||
``` | ||
Create a portable executable by adding the portable option | ||
``` | ||
./build.sh portable | ||
``` | ||
|
||
### Building on macOS | ||
1. Homebrew is needed to install Qt. [Get it from the Homebrew website.](https://brew.sh) | ||
2. Clone this repository. | ||
``` | ||
git clone https://github.com/zevlee/hello-world-qt.git | ||
``` | ||
3. Enter the ``macos`` directory. | ||
``` | ||
cd hello-world-qt/macos | ||
``` | ||
4. Run ``bootstrap.sh`` to install any missing dependencies. | ||
``` | ||
chmod +x bootstrap.sh && ./bootstrap.sh | ||
``` | ||
5. Run ``build.sh``. | ||
``` | ||
chmod +x build.sh && ./build.sh | ||
``` | ||
Enable code signing by adding the Common Name of the certificate as the first argument. Without this, adhoc signing will be used. | ||
``` | ||
./build.sh "Developer ID Application: Name Here (TEAMIDHERE)" | ||
``` | ||
Enable notarization by also adding the name of a stored keychain profile. | ||
``` | ||
./build.sh "Developer ID Application: Name Here (TEAMIDHERE)" "keychain-profile-here" | ||
``` | ||
Notarization can alternatively be enabled by adding Apple ID, Team ID, and an app-specific password as subsequent arguments. | ||
``` | ||
./build.sh "Developer ID Application: Name Here (TEAMIDHERE)" "[email protected]" "TEAMIDHERE" "pass-word-goes-here" | ||
``` | ||
|
||
### Building on Linux | ||
1. Ensure Qt is installed. | ||
2. Clone this repository. | ||
``` | ||
git clone https://github.com/zevlee/hello-world-qt.git | ||
``` | ||
3. Enter the ``linux`` directory. | ||
``` | ||
cd hello-world-qt/linux | ||
``` | ||
4. Run ``bootstrap.sh`` to install any missing dependencies. | ||
``` | ||
chmod +x bootstrap.sh && ./bootstrap.sh | ||
``` | ||
5. Run ``build.sh``. | ||
``` | ||
chmod +x build.sh && ./build.sh | ||
``` |