I have spent most of my day trying to publish my app (still in beta), but after getting the .yaml configuration somewhat right the app still doesn’t get built. That’s the only error remaining (pipeline): "
2024-10-02 18:37:19,977 DEBUG: > bash -e -u -o pipefail -x -c export PUB_CACHE=$(pwd)/.pub-cache; .flutter/bin/flutter build apk --release
++ pwd
+ export PUB_CACHE=/home/vagrant/build/com.dobval.proteinvalue/.pub-cache
+ PUB_CACHE=/home/vagrant/build/com.dobval.proteinvalue/.pub-cache
+ .flutter/bin/flutter build apk --release
bash: line 1: .flutter/bin/flutter: No such file or directory
2024-10-02 18:37:20,179 ERROR: Could not build app com.dobval.proteinvalue: Error running build command for com.dobval.proteinvalue:0.1
==== detail begin ====
++ pwd
+ export PUB_CACHE=/home/vagrant/build/com.dobval.proteinvalue/.pub-cache
+ PUB_CACHE=/home/vagrant/build/com.dobval.proteinvalue/.pub-cache
+ .flutter/bin/flutter build apk --release
bash: line 1: .flutter/bin/flutter: No such file or directory
==== detail end ====
2024-10-02 18:37:20,179 DEBUG: Error encountered, stopping by user request.
Uploading artifacts for failed job 00:02
Uploading artifacts...
WARNING: repo/: no matching files. Ensure that the artifact path is relative to the working directory (/builds/dobval1/fdroiddata)
unsigned/: found 1 matching artifact files and directories
tmp/: found 1 matching artifact files and directories
WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/7978356985/artifacts?artifact_format=zip&artifact_type=archive&expire_in=1+month new-url=https://gitlab.com
WARNING: Retrying... context=artifacts-uploader error=request redirected
Uploading artifacts as "archive" to coordinator... 201 Created id=7978356985 responseStatus=201 Created token=glcbt-66
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1
"
I tried different variations of the template for flutter from fdroid. Even at first I only had a simple gradle build file… Any ideas are welcome.
We need to know which Flutter version you use, either add Flutter as a git submodule (that you use when you build) or add its version in pubspec.yaml
In the meantime edit as:
- versionName: "0.1"
versionCode: 1
commit: 3787482aece9f339ae45231d2cfc65d5876192fd
output: build/app/outputs/flutter-apk/app-release.apk
srclibs:
- flutter@3.24.3
prebuild:
- export PUB_CACHE=$(pwd)/.pub-cache
- $$flutter$$/bin/flutter config --no-analytics
- $$flutter$$/bin/flutter packages pub get
scandelete:
- .pub-cache
build:
- export PUB_CACHE=$(pwd)/.pub-cache
- $$flutter$$/bin/flutter build apk --release
and test
1 Like
Thank you! Sorry for the late reply, now it seems I am having issues with the APK signature, but I think I should figure it out.