fix: drop release-unsigned from release output path
Guessing based on this logoutput
```
[INFO]: # Copying APK to current directory
[INFO]: # APK filename not found in build output. Guessing...
[INFO]: # Found APK file: /home/data/.buildozer/android/platform/build/dists/zeronet/build/outputs/apk/release/zeronet-release-unsigned.apk
[INFO]: # Add version number to APK
[INFO]: # APK renamed to zeronet-0.6.5.1-release-unsigned.apk
[DEBUG]: -> running cp /home/data/.buildozer/android/platform/build/dists/zeronet/build/outputs/apk/release/zeronet-release-unsigned.apk zeronet-0.6.5.1-release-unsigned.apk
...
IOError: [Errno 2] No such file or directory: u'/home/data/.buildozer/android/platform/build/dists/zeronet/build/outputs/apk/release-unsigned/zeronet-release-unsigned.apk'
```
(cherry picked from commit 6142acfa40
)
This commit is contained in:
parent
ec1ede62d2
commit
53b16c933f
1 changed files with 3 additions and 1 deletions
|
@ -787,8 +787,10 @@ class TargetAndroid(Target):
|
||||||
if self.build_mode == 'debug':
|
if self.build_mode == 'debug':
|
||||||
build_cmd += [("debug", )]
|
build_cmd += [("debug", )]
|
||||||
mode = 'debug'
|
mode = 'debug'
|
||||||
|
mode_sign = mode
|
||||||
else:
|
else:
|
||||||
build_cmd += [("release", )]
|
build_cmd += [("release", )]
|
||||||
|
mode_sign = "release"
|
||||||
mode = self.get_release_mode()
|
mode = self.get_release_mode()
|
||||||
|
|
||||||
self.execute_build_package(build_cmd)
|
self.execute_build_package(build_cmd)
|
||||||
|
@ -813,7 +815,7 @@ class TargetAndroid(Target):
|
||||||
packagename = config.get('app', 'package.name')
|
packagename = config.get('app', 'package.name')
|
||||||
apk = u'{packagename}-{mode}.apk'.format(
|
apk = u'{packagename}-{mode}.apk'.format(
|
||||||
packagename=packagename, mode=mode)
|
packagename=packagename, mode=mode)
|
||||||
apk_dir = join(dist_dir, "build", "outputs", "apk", mode)
|
apk_dir = join(dist_dir, "build", "outputs", "apk", mode_sign)
|
||||||
apk_dest = u'{packagename}-{version}-{mode}.apk'.format(
|
apk_dest = u'{packagename}-{version}-{mode}.apk'.format(
|
||||||
packagename=packagename, mode=mode, version=version)
|
packagename=packagename, mode=mode, version=version)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue