mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Add Dockerfile to create an AppImage for Debian (#156)
This commit is contained in:
parent
96e99710fc
commit
b78f101478
4 changed files with 36 additions and 0 deletions
|
@ -19,6 +19,10 @@ if [[ $TAG == nightly ]]; then
|
||||||
TAG=${TRAVIS_BUILD_NUMBER}.nightly
|
TAG=${TRAVIS_BUILD_NUMBER}.nightly
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$TAG" ]; then
|
||||||
|
TAG=`git rev-parse --abbrev-ref HEAD`
|
||||||
|
fi
|
||||||
|
|
||||||
# Installing dependencies on travis.
|
# Installing dependencies on travis.
|
||||||
if [ ! -z "$TRAVIS_OS_NAME" ]; then
|
if [ ! -z "$TRAVIS_OS_NAME" ]; then
|
||||||
sudo apt-add-repository -y ppa:brightbox/ruby-ng
|
sudo apt-add-repository -y ppa:brightbox/ruby-ng
|
||||||
|
|
22
Dockerfile.debian
Normal file
22
Dockerfile.debian
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
FROM debian:unstable
|
||||||
|
|
||||||
|
RUN apt-get update -y -qq
|
||||||
|
|
||||||
|
RUN apt-get install -y gcc g++ cmake clang liblmdb-dev
|
||||||
|
|
||||||
|
RUN apt-get install -y mesa-common-dev wget fuse git
|
||||||
|
|
||||||
|
RUN apt-get -y install ruby ruby-dev rubygems rpm && \
|
||||||
|
gem install --no-ri --no-rdoc fpm
|
||||||
|
|
||||||
|
RUN apt-get update -qq && \
|
||||||
|
apt-get install -y \
|
||||||
|
qt5-default \
|
||||||
|
qtbase5-dev \
|
||||||
|
qttools5-dev-tools \
|
||||||
|
qttools5-dev \
|
||||||
|
qtmultimedia5-dev
|
||||||
|
|
||||||
|
RUN mkdir /build
|
||||||
|
|
||||||
|
WORKDIR /build
|
7
Makefile
7
Makefile
|
@ -24,6 +24,9 @@ lint:
|
||||||
image:
|
image:
|
||||||
docker build -t nheko-app-image .
|
docker build -t nheko-app-image .
|
||||||
|
|
||||||
|
debian-image:
|
||||||
|
docker build -f Dockerfile.debian -t nheko-debian-appimage .
|
||||||
|
|
||||||
linux-deploy:
|
linux-deploy:
|
||||||
./.ci/linux/deploy.sh
|
./.ci/linux/deploy.sh
|
||||||
./.ci/linux/create-packages.sh
|
./.ci/linux/create-packages.sh
|
||||||
|
@ -40,5 +43,9 @@ docker-app-image: image
|
||||||
--privileged \
|
--privileged \
|
||||||
-v `pwd`:/build nheko-app-image make linux-deploy
|
-v `pwd`:/build nheko-app-image make linux-deploy
|
||||||
|
|
||||||
|
docker-debian-appimage: debian-image
|
||||||
|
docker run -v `pwd`:/build nheko-debian-appimage make release
|
||||||
|
docker run --privileged -v `pwd`:/build nheko-debian-appimage make linux-deploy
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
|
@ -68,6 +68,9 @@ If you don't want to install any external dependencies, you can generate an AppI
|
||||||
make docker-app-image
|
make docker-app-image
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you're on Debian you should use `make docker-debian-appimage` instead, which uses
|
||||||
|
Debian as the build host in an attempt to work around this [issue](https://github.com/AppImage/AppImageKit/wiki/Desktop-Linux-Platform-Issues#openssl).
|
||||||
|
|
||||||
##### Arch Linux
|
##### Arch Linux
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Reference in a new issue