Closed Integral-Tech closed 2 days ago
How can I tell it which abi should be built?
Defaults to arm64 (-ooa
), need other archs?
Is the versionCode in app name makes your script harder to write?
Since you publish 3 abis on GitHub...
fl_build without -ooa
behaves as --split-per-abi
, with 3 abis...
So i guess that you only need arm64 one...
Is the versionCode in app name makes your script harder to write?
If this matters you, i can delete the versionCode from app name.
So i guess that you only need arm64 one...
we need all 3, I mean not us... but users... users of arm need arm, users of amd64 need that
fl_build without -ooa behaves as --split-per-abi, with 3 abis...
so all 3 are created? we can use that, brb
If this matters you, i can delete the versionCode from app name.
yes, please. You can put versionName there, that's ok
Output format is the same as Actions assets.
so all 3 are created? we can use that, brb
Then every apk takes longer to build. So can you add an argument so that we can build the specified abi?
ok
+ dart run fl_build -p android
GITHUB_ENV is not set. Skip writing env.
Running beforeBuild...
Unhandled exception:
PathNotFoundException: Cannot open file, path = 'ios/Runner.xcodeproj/project.pbxproj' (OS Error: No such file or directory, errno = 2)
#0 _checkForErrorResponse (dart:io/common.dart:55:9)
#1 _File.open.<anonymous closure> (dart:io/file_impl.dart:381:7)
<asynchronous suspension>
#2 _File.readAsBytes.<anonymous closure> (dart:io/file_impl.dart:562:24)
<asynchronous suspension>
#3 _File.readAsString (dart:io/file_impl.dart:621:18)
<asynchronous suspension>
#4 changeAppleVersion (package:fl_build/utils.dart:52:22)
<asynchronous suspension>
#5 main (file:///home/runner/work/flutter_server_box/flutter_server_box/.pub-cache/git/fl_build-9d5c990c66ce7d7448f4580ae832c93b3cf11314/bin/fl_build.dart:64:3)
<asynchronous suspension>
can you untangle the need for the ios
folder when building for android?
ok
I decided to put the metadata update logic before the commit, otherwise it's too coupled... So just use your scripts.
waiting on the tag to test :+1:
Now you can compare the diff with v976
APK name is still wacky :stuck_out_tongue:
Bot detected the issue body's language is not English, translate it automatically. π―ππ»π§βπ€βπ§π«π§πΏβπ€βπ§π»π©πΎβπ€βπ¨πΏπ¬πΏ
APK name is still wacky :stuck_out_tongue:
fmt like ServerBox_arm64.apk
is ok?
I want to keep versionCode in apk name if possible...
you can't put the real versionCode in name?
Ignoring the fact that tag is 976 and in name you've put 977, the real number is 9671...2...3... right?
fact that tag is 976 and in name you've put 977
Oh, it's a bug
put the real versionCode
But the users will be confused on 9761, can I use 976 (Name_976_arm64.apk
) instead of 9761?
see above https://github.com/lollipopkit/flutter_server_box/issues/381#issuecomment-2163404901 versionName or real versionCode.
977 uses versionName
There are 2 hard problems in computing
ERROR: Could not build app tech.lolli.toolbox: Unexpected version/version code in output; APK: '1.0.978' / '9783', Expected: '1.0.977' / '9773'
@ 161f536a625e5879145044af7fb2aa2ea79285ef
Interesting enough build log says:
2024-06-17 12:52:12,375 DEBUG: buildserver > + dart run fl_build -p android
2024-06-17 12:52:13,781 DEBUG: buildserver > GITHUB_ENV is not set. Skip writing env.
2024-06-17 12:52:13,781 DEBUG: buildserver > Running beforeBuild...
2024-06-17 12:52:18,502 DEBUG: buildserver >
2024-06-17 12:52:18,502 DEBUG: buildserver >
2024-06-17 12:52:18,503 DEBUG: buildserver > [apk]
2024-06-17 12:52:18,503 DEBUG: buildserver > flutter build apk --build-number=978 --build-name=1.0.978 --split-per-abi
I see 977
here https://github.com/lollipopkit/flutter_server_box/blob/v1.0.977/lib/data/res/build_data.dart#L5 though....
Use your build script instead of fl_build
in order to decouple these logics.
@lollipopkit yup, I've read it backwards :stuck_out_tongue:
Bot detected the issue body's language is not English, translate it automatically. π―ππ»π§βπ€βπ§π«π§πΏβπ€βπ§π»π©πΎβπ€βπ¨πΏπ¬πΏ
@lollipopkit yup, I've read it backwards :stuck_out_tongue:
Wasn't this a client for my own servers? Why does it connect to cdn.lolli.tech
at start? ref: https://github.com/lollipopkit/flutter_server_box/blob/v1.0.977/lib/data/res/url.dart#L2
It's for auto update. Auto update should be opt-in.
It's update checker url. There is a switch in settings, you can turn it off.
It needs to be off by default, specially for reproducible builds.
Can i add a mark (such as //FOR_FDROID
) at line end:
https://github.com/lollipopkit/flutter_server_box/blob/161f536a625e5879145044af7fb2aa2ea79285ef/lib/data/store/setting.dart#L151
And you replace it to false in your script?
How would the APK then be reproducible if the source is different?
...Add an intro screen at first launch for this settings setup?
That would be good. :)
It needs to be off by default, specially for reproducible builds.
Is it because the apk published by F-Droid has different signature from apk downloaded from GitHub Release?
It has the same signaure. But some users don't understand where the update is from. If the auto update is on by default, the user may switch to upstream channel without noticing that. And upstream devs may add non-free deps by mistake and push the update to users directly before F-Droid can check that.
Add an intro screen at first launch for this settings setup?
...that explains that the update is from the developer
@Integral-Tech two ideas
Add an intro screen at first launch for this settings setup?
...that explains that the update is from the developer
@Integral-Tech two ideas
* as said above, expectations, users wanted the app _"built and **verified** by F-Droid"_ * if on by default means we need to add **NonFreeNet** and **Tracking** anti-features to the app, ref: https://f-droid.org/docs/Anti-Features/ (but the point above has priority anyway)
Okay, I see
Sorry for late.
Is this okay?
Looks good to me. :)
992 has been released
for the next version do correct the typo (in all locales) https://github.com/lollipopkit/flutter_server_box/blob/v1.0.992/lib/l10n/app_en.arb#L104 it's F-Droid
:wink:
Thanks for your help. π₯³
It would be better if ServerBox is submitted to F-Droid.