SDRausty / buildAPKs

Really quickly build APKs on handheld device (smartphone or tablet) in Amazon, Android, Chromebook and Windows📲 See https://buildapks.github.io/docsBuildAPKs/setup to start building APKs.
https://sdrausty.github.io/buildAPKs
Apache License 2.0
338 stars 71 forks source link

buildOne.bash --> Unbound "DAY" and "RDR"? #14

Closed keiichiiownsu12 closed 5 years ago

keiichiiownsu12 commented 5 years ago

Hi. I am attempting to compile a particular apk file (https://github.com/foolish314159/NHK-Easy-News), however when I run ./buildOne.bash, I get an error message stating:

./buildOne.bash: line 133: DAY: unbound variable ./buildOne.bash: line 48: RDR: unbound variable

I ran the script outside of the directory containing the android manifest file and received the same result.

rafaelfbs commented 5 years ago

Use the command "termux-setup-storage". See the StackOverflow answer.

Quasic commented 5 years ago

It looks like DAY could be omitted, and RDR is the root directory? RDR=$PREFIX DAY=''

keiichiiownsu12 commented 5 years ago

Well, I already had the termux storage directory set up.

I also used the build.dir (whichever one that was), and it seemed to run fine (i.e. ran it in the directory with the android manifest xml file). However, the script was returning an error: i.e. for every "asset" called (i.e. menu bars, etc.), it was saying "could not find". (deleted the scripts previously, but I can re-run it if you want the output.

So, that leads me to my second question: can your program build/compile any random android app into an apk? (i.e. I was trying to build an app I downloaded from github using your script). Or can it ONLY compile files that are specifically compatible with it?

-Adam

On Mon, Mar 4, 2019, 12:15 Quasic notifications@github.com wrote:

It looks like DAY could be omitted, and RDR is the root directory? RDR=$PREFIX DAY=''

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sdrausty/buildAPKs/issues/14#issuecomment-469405240, or mute the thread https://github.com/notifications/unsubscribe-auth/AjxJuJxgiVvNHIeeCnlqvkqIppfHhdxYks5vTX7sgaJpZM4bOzBF .

Quasic commented 5 years ago

It doesn't build many projects. It is still a work in progress, I believe.

The unbound variables are usually ignored by bash. This would be ok for DAY, I think, but RDR is a path to a directory with scripts to fix issues and includes a var subdirectory for log files...I haven't used this script, but that's how I read it.

HemanthJabalpuri commented 5 years ago

@sdrausty Same issue for me too...

SDRausty commented 5 years ago

Resolved: https://github.com/sdrausty/buildAPKs/commit/0b41b1e6796239dc32301854bff9b5063dfd7d07

SDRausty commented 5 years ago

buildOne.bash is currently build.one.bash. New files build.sh and build.zsh are added for convenience. Three shells are currently supported by BuildAPKs: bash, sh and zsh.