diff --git a/.travis-ci.sh b/.travis-ci.sh index d3c715d7..199525e7 100644 --- a/.travis-ci.sh +++ b/.travis-ci.sh @@ -49,10 +49,16 @@ function setup_arm64_chroot { # Host dependencies sudo apt-get install -qq -y ${HOST_DEPENDENCIES} # Download LDC compiler - wget https://github.com/ldc-developers/ldc/releases/download/v1.10.0/ldc2-1.10.0-linux-armhf.tar.xz - tar -xf ldc2-1.10.0-linux-armhf.tar.xz - mv ldc2-1.10.0-linux-armhf dlang-${ARCH} - rm -rf ldc2-1.10.0-linux-armhf.tar.xz + wget https://github.com/ldc-developers/ldc/releases/download/v1.11.0/ldc2-1.11.0-linux-aarch64.tar.xz + tar -xf ldc2-1.11.0-linux-aarch64.tar.xz + mv ldc2-1.11.0-linux-aarch64 dlang-${ARCH} + rm -rf ldc2-1.11.0-linux-aarch64.tar.xz + + # ARM64 qemu-debootstrap needs to be 1.0.78, Trusty is 1.0.59 + sudo echo "deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse" >> /etc/apt/sources.list + sudo apt-get update + sudo apt-get install -t xenial debootstrap + # Create chrooted environment sudo mkdir ${CHROOT_DIR} sudo qemu-debootstrap --arch=${CHROOT_ARCH64} ${VERSION64} ${CHROOT_DIR} ${DEBIAN_MIRROR} diff --git a/.travis.yml b/.travis.yml index 878f90fe..afcc28a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ env: - ARCH=x64 - ARCH=x32 - ARCH=arm32 -# - ARCH=arm64 + - ARCH=arm64 script: - "bash -ex .travis-ci.sh" \ No newline at end of file diff --git a/README.md b/README.md index e44ded2f..374c9eea 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ curl -fsS https://dlang.org/install.sh | bash -s dmd sudo pacman -S curl sqlite dmd ``` -### Dependencies: Raspbian (ARM) +### Dependencies: Raspbian (ARMHF) ``` sudo apt-get install libcurl4-openssl-dev sudo apt-get install libsqlite3-dev @@ -85,13 +85,20 @@ wget https://github.com/ldc-developers/ldc/releases/download/v1.10.0/ldc2-1.10.0 tar -xvf ldc2-1.10.0-linux-armhf.tar.xz ``` +### Dependencies: Debian (ARM64) +``` +sudo apt-get install libcurl4-openssl-dev +sudo apt-get install libsqlite3-dev +wget https://github.com/ldc-developers/ldc/releases/download/v1.11.0/ldc2-1.11.0-linux-aarch64.tar.xz +tar -xvf ldc2-1.11.0-linux-aarch64.tar.xz +``` + ### Dependencies: Gentoo ``` sudo emerge app-portage/layman sudo layman -a dlang - -Add ebuild from contrib/gentoo to a local overlay to use. ``` +Add ebuild from contrib/gentoo to a local overlay to use. ### Dependencies: OpenSuSE Leap 15.0 ``` @@ -127,7 +134,7 @@ make DC=/usr/bin/ldmd2 sudo make install ``` -#### ARM Architecture +#### ARMHF Architecture ``` git clone https://github.com/abraunegg/onedrive.git cd onedrive @@ -135,6 +142,14 @@ make DC=~/ldc2-1.10.0-linux-armhf/bin/ldmd2 sudo make install ``` +#### ARM64 Architecture +``` +git clone https://github.com/abraunegg/onedrive.git +cd onedrive +make DC=~/ldc2-1.11.0-linux-aarch64/bin/ldmd2 +sudo make install +``` + ## Using the client ### First run :zap: After installing the application you must run it at least once from the terminal to authorize it.