Skip to content

Commit

Permalink
Buildscripts for windows executables
Browse files Browse the repository at this point in the history
  • Loading branch information
consp committed Feb 20, 2020
1 parent 3032704 commit 2594dd3
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docker/Dockerfile-python3-x64
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM cdrx/pyinstaller-windows:python3

RUN apt-get update -y
RUN pip install --upgrade PyQt5
RUN pip install --upgrade sip
RUN mkdir /app
COPY run.sh /app

WORKDIR /src
RUN chmod uga+x /app/run.sh
CMD ["/app/run.sh"]
11 changes: 11 additions & 0 deletions docker/Dockerfile-python3-x86
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM cdrx/pyinstaller-windows:python3-32bit

RUN apt-get update -y
RUN pip install --upgrade PyQt5
RUN pip install --upgrade sip
RUN mkdir /app
COPY run.sh /app

WORKDIR /src
RUN chmod uga+x /app/run.sh
CMD ["/app/run.sh"]
5 changes: 5 additions & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docker-compose build
docker-compose run python3-x64
mv ../bin/apim.exe ../bin/apim-python3-Qt5-x64.exe
docker-compose run python3-x86
mv ../bin/apim.exe ../bin/apim-python3-Qt5-x86-32bit.exe
18 changes: 18 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: "3"
services:
python3-x64:
build:
context: .
dockerfile: Dockerfile-python3-x64
volumes:
- ../src/:/src/
- ../bin/:/dist/
- ../build/:/build/
python3-x86:
build:
context: .
dockerfile: Dockerfile-python3-x86
volumes:
- ../src/:/src/
- ../bin/:/dist/
- ../build/:/build/
3 changes: 3 additions & 0 deletions docker/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
cd /src/
pyinstaller --onefile --distpath /dist/ --workpath /build/ apim.py

0 comments on commit 2594dd3

Please sign in to comment.