-
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.
feat: update Taskfile.yaml and add dist.sh script
- Update the `dist` task in Taskfile.yaml to use a bash script `dist.sh` for building the distribution files. - Remove the previous commands in the `dist` task and replace them with a single command that invokes the `dist.sh` script with the appropriate arguments. - Update the `setup` task in Taskfile.yaml to create a conda environment with Python 3.11 instead of Python 3.12. The changes were made to improve the build process and ensure compatibility with the desired Python version.
- Loading branch information
Showing
5 changed files
with
67 additions
and
26 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
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
words: | ||
- choco | ||
- cython | ||
- dmypy | ||
- gomod | ||
|
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,28 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
OS=$1 | ||
ARCH=$2 | ||
PYTHON_VERSION=$3 | ||
exeExt=$4 | ||
|
||
rm --force --recursive --verbose dist | ||
if python -m nuitka --standalone --onefile \ | ||
--output-filename="aic-$OS-$ARCH-py$PYTHON_VERSION$exeExt" \ | ||
--output-dir="dist" --remove-output main.py; then | ||
exit 0 | ||
else | ||
status=$? | ||
fi | ||
|
||
rm --force --recursive --verbose dist | ||
if pyinstaller --distpath="dist" --onefile \ | ||
--name="aic-$OS-$ARCH-py$PYTHON_VERSION" main.py; then | ||
exit 0 | ||
else | ||
status=$? | ||
fi | ||
|
||
exit $status |