Convert to using poetry builder
Thanks to Benjamin Schaaf
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
bleach==3.2.1
|
|
||||||
bottle==0.12.18
|
|
||||||
casttube==0.2.1
|
|
||||||
certifi==2020.6.20
|
|
||||||
chardet==3.0.4
|
|
||||||
dataclasses-json==0.5.2
|
|
||||||
deepdiff==5.0.2
|
|
||||||
fuzzywuzzy==0.18.0
|
|
||||||
idna==2.10
|
|
||||||
ifaddr==0.1.7
|
|
||||||
jeepney==0.4.3
|
|
||||||
marshmallow-enum==1.5.1
|
|
||||||
marshmallow==3.8.0
|
|
||||||
mypy-extensions==0.4.3
|
|
||||||
ordered-set==4.0.2
|
|
||||||
packaging==20.4
|
|
||||||
peewee==3.13.3
|
|
||||||
protobuf==3.13.0
|
|
||||||
pycairo==1.19.1
|
|
||||||
pychromecast==7.3.0
|
|
||||||
pycparser==2.20
|
|
||||||
pyparsing==2.4.7
|
|
||||||
python-dateutil==2.8.1
|
|
||||||
python-levenshtein==0.12.0
|
|
||||||
python-mpv==0.5.2
|
|
||||||
requests==2.24.0
|
|
||||||
semver==2.10.2
|
|
||||||
six==1.15.0
|
|
||||||
stringcase==1.2.0
|
|
||||||
typing-inspect==0.6.0
|
|
||||||
urllib3==1.25.10
|
|
||||||
zeroconf==0.28.5
|
|
@@ -2,23 +2,30 @@
|
|||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
ARCH=${ARCH:""}
|
||||||
REPO=${REPO:-/repo}
|
REPO=${REPO:-/repo}
|
||||||
APPID=app.sublimemusic.SublimeMusic
|
APPID=app.sublimemusic.SublimeMusic
|
||||||
|
|
||||||
# TODO move these to the Docker container
|
if [ -z "$ARCH" ]; then
|
||||||
pip3 install requirements-parser
|
ARCH_ARG=""
|
||||||
flatpak install -y org.gnome.Platform//3.38
|
else
|
||||||
flatpak install -y org.gnome.Sdk//3.38
|
ARCH_ARG="--arch=$ARCH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
pip3 install toml
|
||||||
|
flatpak install -y org.gnome.Platform/$ARCH/3.38
|
||||||
|
flatpak install -y org.gnome.Sdk/$ARCH/3.38
|
||||||
|
|
||||||
rm -rf flatpak-builder-tools
|
rm -rf flatpak-builder-tools
|
||||||
git clone https://github.com/flatpak/flatpak-builder-tools.git
|
git clone https://github.com/flatpak/flatpak-builder-tools.git
|
||||||
|
|
||||||
python3 ./flatpak-builder-tools/pip/flatpak-pip-generator \
|
python3 ./flatpak-builder-tools/poetry/flatpak-poetry-generator.py \
|
||||||
--requirements-file=flatpak-requirements.txt \
|
../poetry.lock \
|
||||||
--output pypi-dependencies
|
--production \
|
||||||
|
-o pypi-dependencies.json
|
||||||
|
|
||||||
mkdir -p $REPO
|
mkdir -p $REPO
|
||||||
|
|
||||||
flatpak-builder --force-clean --repo=$REPO flatpak_build_dir ${APPID}.json
|
flatpak-builder --force-clean $ARCH_ARG --repo=$REPO flatpak_build_dir ${APPID}.json
|
||||||
|
|
||||||
flatpak build-bundle $REPO sublime-music.flatpak $APPID
|
flatpak build-bundle $ARCH_ARG $REPO sublime-music.flatpak $APPID
|
||||||
|
Reference in New Issue
Block a user