Skip to content

Commit 54575ae

Browse files
committed
Remove stray - in output file name
The final component in the package name is just the extension, so prefixing it with a - means the output file ends in -.<ext>.
1 parent 3353fbf commit 54575ae

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Unit tests & build apps
33
on: ['push', 'pull_request']
44

55
env:
6-
APK_ARTIFACT_FILENAME: bdist_unit_tests_app-debug-1.1-.apk
7-
AAB_ARTIFACT_FILENAME: bdist_unit_tests_app-release-1.1-.aab
8-
AAR_ARTIFACT_FILENAME: bdist_unit_tests_app-release-1.1-.aar
6+
APK_ARTIFACT_FILENAME: bdist_unit_tests_app-debug-1.1.apk
7+
AAB_ARTIFACT_FILENAME: bdist_unit_tests_app-release-1.1.aab
8+
AAR_ARTIFACT_FILENAME: bdist_unit_tests_app-release-1.1.aar
99
PYTHONFORANDROID_PREREQUISITES_INSTALL_INTERACTIVE: 0
1010

1111
jobs:

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,17 @@ docker/run/command: docker/build
106106

107107
docker/run/make/with-artifact/apk/%: docker/build
108108
docker run --name p4a-latest --env-file=.env $(DOCKER_IMAGE) make $*
109-
docker cp p4a-latest:/home/user/app/testapps/on_device_unit_tests/bdist_unit_tests_app-debug-1.1-.apk ./apks
109+
docker cp p4a-latest:/home/user/app/testapps/on_device_unit_tests/bdist_unit_tests_app-debug-1.1.apk ./apks
110110
docker rm -fv p4a-latest
111111

112112
docker/run/make/with-artifact/aar/%: docker/build
113113
docker run --name p4a-latest --env-file=.env $(DOCKER_IMAGE) make $*
114-
docker cp p4a-latest:/home/user/app/testapps/on_device_unit_tests/bdist_unit_tests_app-release-1.1-.aar ./aars
114+
docker cp p4a-latest:/home/user/app/testapps/on_device_unit_tests/bdist_unit_tests_app-release-1.1.aar ./aars
115115
docker rm -fv p4a-latest
116116

117117
docker/run/make/with-artifact/aab/%: docker/build
118118
docker run --name p4a-latest --env-file=.env $(DOCKER_IMAGE) make $*
119-
docker cp p4a-latest:/home/user/app/testapps/on_device_unit_tests/bdist_unit_tests_app-release-1.1-.aab ./aabs
119+
docker cp p4a-latest:/home/user/app/testapps/on_device_unit_tests/bdist_unit_tests_app-release-1.1.aab ./aabs
120120
docker rm -fv p4a-latest
121121

122122
docker/run/make/rebuild_updated_recipes: docker/build

pythonforandroid/toolchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ def _finish_package(self, args, output, build_args, package_type, output_dir):
11471147
if package_add_version:
11481148
info('# Add version number to android package')
11491149
package_name = basename(package_file)[:-len(package_extension)]
1150-
package_file_dest = "{}-{}-{}".format(
1150+
package_file_dest = "{}-{}{}".format(
11511151
package_name, build_args.version, package_extension)
11521152
info('# Android package renamed to {}'.format(package_file_dest))
11531153
shprint(sh.cp, package_file, package_file_dest)

0 commit comments

Comments
 (0)