properly name fdroid artifacts

This commit is contained in:
Alya Sirko 2022-08-31 17:13:59 +03:00
parent 37c08a9db7
commit 2e1a1a0afe

View file

@ -36,11 +36,12 @@ steps:
# Copy sources to the building environment # Copy sources to the building environment
- scp -r `pwd` isolated:/var/lib/builder - scp -r `pwd` isolated:/var/lib/builder
# Build release artifacts # Build release artifacts
- ssh isolated "cd src && flutter build apk --release --split-per-abi" - ssh isolated "cd src && flutter build apk --release"
# Fetch the release artifacts # Fetch the release artifacts
- scp isolated:/var/lib/builder/src/build/app/outputs/flutter-apk/*-release.apk `pwd` - scp isolated:/var/lib/builder/src/build/app/outputs/flutter-apk/app-release.apk `pwd`
# Rename the artifacts in a more informative way # Rename the artifacts in a more informative way
- rename app pro.kherel.selfprivacy *.apk && rename release "$DRONE_SEMVER" *.apk - export APP_BUILD_ID=`yq '.version' pubspec.yaml | cut -d "+" -f2`
- mv app-release.apk "pro.kherel.selfprivacy_$APP_BUILD_ID.apk"
- ls *.apk - ls *.apk
environment: environment:
SSH_PRIVATE_KEY: SSH_PRIVATE_KEY: