mirror of
https://github.com/zontreck/NBTEditor
synced 2024-11-21 13:48:56 -07:00
Adds instruction to embed update information in appimage
This commit is contained in:
parent
d117972d0c
commit
098d8479c8
5 changed files with 20 additions and 5 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -28,6 +28,8 @@ pipeline {
|
||||||
|
|
||||||
cd ../../../../
|
cd ../../../../
|
||||||
appimage-builder --recipe AppImageBuilder.yml
|
appimage-builder --recipe AppImageBuilder.yml
|
||||||
|
|
||||||
|
appimagetool AppDir/usr/share/applications/*.desktop -u "zsync|https://ci.zontreck.com/job/Projects/job/Dart/job/NBTEditor/job/main/lastSuccessfulBuild/artifact/NBT%20Editor-latest-x86_64.AppImage.zsync"
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +39,7 @@ pipeline {
|
||||||
archiveArtifacts artifacts: '*.apk', fingerprint: true
|
archiveArtifacts artifacts: '*.apk', fingerprint: true
|
||||||
archiveArtifacts artifacts: 'out/*', fingerprint: true
|
archiveArtifacts artifacts: 'out/*', fingerprint: true
|
||||||
archiveArtifacts artifacts: '*.AppImage', fingerprint: true
|
archiveArtifacts artifacts: '*.AppImage', fingerprint: true
|
||||||
|
archiveArtifacts artifacts: '*.zsync', fingerprint: true
|
||||||
|
|
||||||
deleteDir()
|
deleteDir()
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
const VERSION = "1.0724.24+0706";
|
const VERSION = "1.0724.24+1429";
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:nbteditor/Editor.dart';
|
import 'package:nbteditor/Editor.dart';
|
||||||
import 'package:nbteditor/pages/AddPage.dart';
|
import 'package:nbteditor/pages/AddPage.dart';
|
||||||
|
@ -39,7 +41,10 @@ class StartPage extends StatefulWidget {
|
||||||
class StartPageState extends State<StartPage> {
|
class StartPageState extends State<StartPage> {
|
||||||
@override
|
@override
|
||||||
void didChangeDependencies() {
|
void didChangeDependencies() {
|
||||||
checkPermissions();
|
if (Platform.isAndroid || Platform.isIOS || Platform.isMacOS)
|
||||||
|
checkPermissions();
|
||||||
|
else
|
||||||
|
Navigator.pushReplacementNamed(context, "/edit");
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> checkPermissions() async {
|
Future<void> checkPermissions() async {
|
||||||
|
@ -56,7 +61,14 @@ class StartPageState extends State<StartPage> {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return const Scaffold(
|
return const Scaffold(
|
||||||
body: Column(
|
body: Column(
|
||||||
children: [Image(image: AssetImage("Icons/PNG/nbteditor.png"))],
|
children: [
|
||||||
|
SizedBox(height: 100),
|
||||||
|
Image(
|
||||||
|
image: AssetImage("Icons/PNG/nbteditor.png"),
|
||||||
|
height: 500,
|
||||||
|
width: 500,
|
||||||
|
)
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: nbteditor
|
name: nbteditor
|
||||||
description: A Minecraft NBT Editor written in Flutter
|
description: A Minecraft NBT Editor written in Flutter
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 1.0724.24+0706
|
version: 1.0724.24+1429
|
||||||
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
#define MyAppName "NBT Editor"
|
#define MyAppName "NBT Editor"
|
||||||
#define MyAppVersion "1.0724.24+0706"
|
#define MyAppVersion "1.0724.24+1429"
|
||||||
#define MyAppPublisher "Piccari Creations"
|
#define MyAppPublisher "Piccari Creations"
|
||||||
#define MyAppURL "https://zontreck.com"
|
#define MyAppURL "https://zontreck.com"
|
||||||
#define MyAppExeName "nbteditor.exe"
|
#define MyAppExeName "nbteditor.exe"
|
||||||
|
|
Loading…
Reference in a new issue