Add web build to CI schedule
This commit is contained in:
parent
b97a3e2cf5
commit
887a0638cd
8 changed files with 21 additions and 62 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -30,6 +30,10 @@ pipeline {
|
|||
|
||||
cd ../../../../
|
||||
|
||||
cd build/web
|
||||
tar -cvf ../../web.tgz .
|
||||
cd ../..
|
||||
|
||||
#appimage-builder --recipe AppImageBuilder.yml
|
||||
|
||||
#appimagetool AppDir/*.desktop -u "zsync|https://ci.zontreck.com/job/Projects/job/Dart/job/NBTEditor/job/main/lastSuccessfulBuild/artifact/NBT%20Editor-latest-x86_64.AppImage.zsync"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
flutter build linux
|
||||
flutter build apk
|
||||
flutter build web
|
||||
|
||||
if [ ! -d out ]
|
||||
then
|
||||
|
|
|
@ -1 +1 @@
|
|||
const VERSION = "1.1.012425+0821";
|
||||
const VERSION = "1.1.020225+1616";
|
||||
|
|
|
@ -11,6 +11,7 @@ import 'package:libac_dart/nbt/impl/ByteArrayTag.dart';
|
|||
import 'package:libac_dart/nbt/impl/CompoundTag.dart';
|
||||
import 'package:libac_dart/nbt/impl/IntArrayTag.dart';
|
||||
import 'package:libac_dart/nbt/impl/LongArrayTag.dart';
|
||||
import 'package:libacflutter/Prompt.dart';
|
||||
import 'package:nbteditor/Constants.dart';
|
||||
import 'package:nbteditor/Consts2.dart';
|
||||
import 'package:nbteditor/SessionData.dart';
|
||||
|
@ -77,9 +78,10 @@ class EditorState extends State<Editor> {
|
|||
context: context,
|
||||
builder: (dialogBuilder) {
|
||||
return InputPrompt(
|
||||
titleText: "What tag name to search for?",
|
||||
PromptText:
|
||||
"Enter the tag name you want to search for");
|
||||
title: "What tag name to search for?",
|
||||
prompt:
|
||||
"Enter the tag name or value you want to search for",
|
||||
type: InputPromptType.Text);
|
||||
});
|
||||
},
|
||||
icon: const Icon(CupertinoIcons.search_circle))
|
||||
|
|
|
@ -2,61 +2,6 @@ import 'package:flutter/material.dart';
|
|||
import 'package:libac_dart/nbt/Tag.dart';
|
||||
import 'package:libac_dart/nbt/impl/StringTag.dart';
|
||||
|
||||
class InputPrompt extends StatefulWidget {
|
||||
String titleText;
|
||||
String PromptText;
|
||||
String value;
|
||||
InputPrompt(
|
||||
{required this.titleText,
|
||||
required this.PromptText,
|
||||
super.key,
|
||||
this.value = ""});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
return InputPromptState(
|
||||
title: Text(titleText), prompt: Text(PromptText), value: value);
|
||||
}
|
||||
}
|
||||
|
||||
class InputPromptState extends State<InputPrompt> {
|
||||
final Widget title;
|
||||
final Widget prompt;
|
||||
TextEditingController _editor = TextEditingController();
|
||||
|
||||
InputPromptState({required this.title, required this.prompt, String? value}) {
|
||||
if (value != null) _editor.text = value;
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: title,
|
||||
actions: [
|
||||
ElevatedButton(
|
||||
onPressed: () async {
|
||||
Navigator.pop(context, _editor.text);
|
||||
},
|
||||
child: Text("Confirm")),
|
||||
ElevatedButton(
|
||||
onPressed: () async {
|
||||
Navigator.pop(context, "");
|
||||
},
|
||||
child: Text("Cancel"))
|
||||
],
|
||||
content: SizedBox(
|
||||
width: 200,
|
||||
height: 100,
|
||||
child: Column(children: [
|
||||
prompt,
|
||||
TextField(
|
||||
controller: _editor,
|
||||
)
|
||||
]),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
class EditValuePrompt extends StatefulWidget {
|
||||
const EditValuePrompt({super.key});
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter_code_editor/flutter_code_editor.dart';
|
|||
import 'package:flutter_highlight/themes/vs.dart';
|
||||
import 'package:libac_dart/nbt/SnbtIo.dart';
|
||||
import 'package:libac_dart/nbt/impl/CompoundTag.dart';
|
||||
import 'package:libacflutter/Prompt.dart';
|
||||
import 'package:nbteditor/Constants.dart';
|
||||
import 'package:nbteditor/SessionData.dart';
|
||||
import 'package:nbteditor/pages/EditValue.dart';
|
||||
|
@ -40,8 +41,9 @@ class SnbtState extends State<SnbtEdit> {
|
|||
context: context,
|
||||
builder: (searchBuilder) {
|
||||
return InputPrompt(
|
||||
titleText: "Search",
|
||||
PromptText: "What do you want to search for?");
|
||||
title: "Search",
|
||||
prompt: "What do you want to search for?",
|
||||
type: InputPromptType.Text);
|
||||
});
|
||||
},
|
||||
icon: Icon(CupertinoIcons.search))
|
||||
|
|
|
@ -5,8 +5,10 @@
|
|||
import FlutterMacOS
|
||||
import Foundation
|
||||
|
||||
import file_picker
|
||||
import url_launcher_macos
|
||||
|
||||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||
FilePickerPlugin.register(with: registry.registrar(forPlugin: "FilePickerPlugin"))
|
||||
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: nbteditor
|
||||
description: A Minecraft NBT Editor written in Flutter
|
||||
publish_to: "none"
|
||||
version: 1.1.012425+0821
|
||||
version: 1.1.020225+1616
|
||||
|
||||
environment:
|
||||
sdk: ^3.6.1
|
||||
|
@ -20,6 +20,9 @@ dependencies:
|
|||
hosted: https://git.zontreck.com/api/packages/AriasCreations/pub/
|
||||
version: ^1.1.2
|
||||
permission_handler: ^11.3.1
|
||||
libacflutter:
|
||||
hosted: https://git.zontreck.com/api/packages/AriasCreations/pub/
|
||||
version: ^1.0.013125+1423
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue