fix(ci): signature release réellement appliquée + maj in-app (open_filex)
Build APK / build (push) Successful in 2m28s
Build APK / build (push) Successful in 2m28s
- patch_android.py: gère 'signingConfig = signingConfigs.debug' (Flutter 3.24 utilise le '='), sans quoi le build restait signé en clé debug éphémère → signature différente à chaque run → 'conflit' à l'install de MAJ. Échoue désormais le build si la ligne n'est pas patchée (garde-fou). - update_service: télécharge l'APK in-app + lance l'installeur (open_filex), fallback navigateur ; barre de progression dans l'écran serveurs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
0257f0fa05
commit
a971204b80
@@ -78,13 +78,35 @@ class _ServersScreenState extends State<ServersScreen> {
|
||||
],
|
||||
),
|
||||
);
|
||||
if (go == true) {
|
||||
final ok = await UpdateService(widget.api.baseUrl).apply(info);
|
||||
if (mounted && !ok) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(content: Text('Impossible d\'ouvrir le téléchargement.')),
|
||||
);
|
||||
}
|
||||
if (go != true || !mounted) return;
|
||||
|
||||
final progress = ValueNotifier<double?>(0);
|
||||
showDialog(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
builder: (_) => AlertDialog(
|
||||
title: const Text('Téléchargement…'),
|
||||
content: ValueListenableBuilder<double?>(
|
||||
valueListenable: progress,
|
||||
builder: (_, p, __) => Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
LinearProgressIndicator(value: p),
|
||||
const SizedBox(height: 10),
|
||||
Text(p == null ? '' : '${(p * 100).round()} %'),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
final ok = await UpdateService(widget.api.baseUrl)
|
||||
.apply(info, onProgress: (p) => progress.value = p);
|
||||
if (mounted) Navigator.of(context, rootNavigator: true).pop(); // ferme la progression
|
||||
if (mounted && !ok) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(content: Text('Mise à jour impossible.')),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user