Skip to content

Commit

Permalink
Fix permission errors during android build
Browse files Browse the repository at this point in the history
  • Loading branch information
dalijolijo authored and dalijolijo committed Aug 5, 2019
1 parent 46d1e3a commit 3cad115
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/make_apk
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/bin/bash

set -x
set -e

CONTRIB="$(dirname "$(readlink -e "$0")")"
ROOT_FOLDER="$CONTRIB"/..
PACKAGES="$ROOT_FOLDER"/packages/
LOCALE="$ROOT_FOLDER"/electrum/locale/

sudo chown --recursive user .

if [ ! -d "$LOCALE" ]; then
echo "Run pull_locale first!"
exit 1
Expand Down
4 changes: 4 additions & 0 deletions electrum/gui/kivy/tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ RUN cd /opt \
&& git checkout 678b1bf52cf63daa51b06e86a43ea4e2ea8a0b24 \
&& python3 -m pip install --user -e .

RUN chown --recursive ${USER} /opt/buildozer

# install python-for-android
RUN cd /opt \
&& git clone https://github.com/kivy/python-for-android \
Expand All @@ -156,6 +158,8 @@ RUN cd /opt \
&& git cherry-pick aaa0d5d0e7a334631df71e0a9bf127817e0ab9ab \
&& python3 -m pip install --user -e .

RUN chown --recursive ${USER} /opt/python-for-android

# build env vars
ENV USE_SDK_WRAPPER=1
ENV GRADLE_OPTS="-Xmx1536M -Dorg.gradle.jvmargs='-Xmx1536M'"

0 comments on commit 3cad115

Please sign in to comment.