diff --git a/Jenkinsfile b/Jenkinsfile index eadb35f..c03a876 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,6 +28,8 @@ pipeline { cd ../../../../ 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: 'out/*', fingerprint: true archiveArtifacts artifacts: '*.AppImage', fingerprint: true + archiveArtifacts artifacts: '*.zsync', fingerprint: true deleteDir() } diff --git a/lib/Consts2.dart b/lib/Consts2.dart index 35ccb62..f61d6dd 100644 --- a/lib/Consts2.dart +++ b/lib/Consts2.dart @@ -1 +1 @@ -const VERSION = "1.0724.24+0706"; +const VERSION = "1.0724.24+1429"; diff --git a/lib/main.dart b/lib/main.dart index fe012a6..13c6fd3 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:flutter/material.dart'; import 'package:nbteditor/Editor.dart'; import 'package:nbteditor/pages/AddPage.dart'; @@ -39,7 +41,10 @@ class StartPage extends StatefulWidget { class StartPageState extends State { @override void didChangeDependencies() { - checkPermissions(); + if (Platform.isAndroid || Platform.isIOS || Platform.isMacOS) + checkPermissions(); + else + Navigator.pushReplacementNamed(context, "/edit"); } Future checkPermissions() async { @@ -56,7 +61,14 @@ class StartPageState extends State { Widget build(BuildContext context) { return const Scaffold( 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, + ) + ], ), ); } diff --git a/pubspec.yaml b/pubspec.yaml index 38ddb1b..577a1f4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: nbteditor description: A Minecraft NBT Editor written in Flutter publish_to: 'none' -version: 1.0724.24+0706 +version: 1.0724.24+1429 environment: diff --git a/wininst.iss b/wininst.iss index 7908009..0a02a04 100644 --- a/wininst.iss +++ b/wininst.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "NBT Editor" -#define MyAppVersion "1.0724.24+0706" +#define MyAppVersion "1.0724.24+1429" #define MyAppPublisher "Piccari Creations" #define MyAppURL "https://zontreck.com" #define MyAppExeName "nbteditor.exe"