Install python3 from https://www.python.org/
Install the required python modules with pip3 install -r requirements.txt
Change directory into src
directory and run python3 ./sticker-convert.py
This repository uses nuitka
for compiling. Just run python3 compile.py
, compilation result in sticker-convert.dist
directory.
On Linux, you may also perform dockerized build
ARCH=amd64 # Choose one only
ARCH=arm64 # Choose one only
# Run this if you are crosscompiling
# sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker build \
-t nuitka_build_${ARCH} \
-f ./scripts/nuitka_build_${ARCH}.dockerfile \
--platform linux/${ARCH} \
./
docker run \
--rm \
-v $(pwd):/sticker-convert \
-w /sticker-convert \
--platform linux/${ARCH} \
nuitka_build_${ARCH} \
python ./compile.py
At the root of this repo, run scripts/build_appimage.sh
Note: You must run this on x86_64 machine
dotnet tool install --global wix --version 4.0.4
wix extension add WixToolset.UI.wixext/4.0.4
python compile.py
mv sticker-convert.dist sticker-convert
python msicreator\createmsi.py msicreator.json
pip -m build .
pip install dist/sticker_convert-xxx.whl
Install development requirements first:
pip install -r requirements-dev.txt
To run tests:
pytest
To run linter:
mypy
pyright
ruff check
ruff format
isort .