-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripts to create linux appimage in docker
- Loading branch information
1 parent
156f88d
commit e389ffb
Showing
5 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.