diff --git a/linux/Dockerfile b/linux/Dockerfile new file mode 100644 index 0000000..494615c --- /dev/null +++ b/linux/Dockerfile @@ -0,0 +1,10 @@ +FROM ubuntu:16.04 + +RUN apt-get update && apt-get install -y qt5-default qt5-qmake libssl-dev git build-essential qttools5-dev-tools +RUN mkdir /work +WORKDIR /work +COPY . /work +RUN mkdir /res +RUN qmake DESTDIR=/res -o syncmyl2p.mk +RUN make -f syncmyl2p.mk +RUN linux/create_appimage.sh \ No newline at end of file diff --git a/linux/create_appimage.sh b/linux/create_appimage.sh new file mode 100644 index 0000000..9f14cb8 --- /dev/null +++ b/linux/create_appimage.sh @@ -0,0 +1,12 @@ +cd linux +apt-get install -y wget file +wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage +wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.8_amd64.deb +dpkg -i libicu52_52.1-3ubuntu0.8_amd64.deb +chmod a+x ./linuxdeployqt-continuous-x86_64.AppImage +./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract +export PATH=/work/linux/squashfs-root/usr/bin/:$PATH +mkdir -p usr/bin +cp ../bin/Sync-my-L2P ./usr/bin/Sync-my-L2P +squashfs-root/AppRun ./usr/bin/Sync-my-L2P -verbose=1 -appimage + diff --git a/linux/run.bat b/linux/run.bat new file mode 100644 index 0000000..1785627 --- /dev/null +++ b/linux/run.bat @@ -0,0 +1,2 @@ +docker build -t syncmyl2p -f linux/Dockerfile . +docker run -it --rm -v %cd%:/trans syncmyl2p sh -c "mv /work/linux/Sync*.AppImage /trans/" \ No newline at end of file diff --git a/linux/run.sh b/linux/run.sh new file mode 100644 index 0000000..a0a22f4 --- /dev/null +++ b/linux/run.sh @@ -0,0 +1,2 @@ +docker build -t syncmyl2p -f linux/Dockerfile . +docker run -it --rm -v %cd%:/trans syncmyl2p bash \ No newline at end of file diff --git a/linux/sync-my-L2P.png b/linux/sync-my-L2P.png new file mode 100644 index 0000000..a044f60 Binary files /dev/null and b/linux/sync-my-L2P.png differ