Skip to content

Commit

Permalink
Add scripts to create linux appimage in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertKrajewski committed Feb 3, 2019
1 parent 156f88d commit e389ffb
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions linux/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions linux/create_appimage.sh
Original file line number Diff line number Diff line change
@@ -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

2 changes: 2 additions & 0 deletions linux/run.bat
Original file line number Diff line number Diff line change
@@ -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/"
2 changes: 2 additions & 0 deletions linux/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build -t syncmyl2p -f linux/Dockerfile .
docker run -it --rm -v %cd%:/trans syncmyl2p bash
Binary file added linux/sync-my-L2P.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e389ffb

Please sign in to comment.