Improve install process
This commit is contained in:
parent
e7db9482c7
commit
44e3372e17
2 changed files with 11 additions and 7 deletions
10
Manager.gd
10
Manager.gd
|
@ -136,9 +136,13 @@ func install(triggered_by:int) -> bool:
|
|||
action.text = "Failed downloading \"" + file + "\" (code " + str(error) + ")"
|
||||
action.disabled = true
|
||||
return false
|
||||
var file = FileAccess.open(path.text + "/CORE/.coreinfo",FileAccess.WRITE)
|
||||
var info = {"version":versioninfo[branch]["version"],"branch":branch,"commit":versioninfo[branch]["commit"]}
|
||||
file.store_string(JSON.stringify(info,"\t",true,true))
|
||||
DirAccess.copy_absolute(path.text + "/CORE/config.gd.example",path.text + "/CORE/config.gd")
|
||||
var file = FileAccess.open(path.text + "/project.godot",FileAccess.READ_WRITE)
|
||||
file.store_string(file.get_as_text() + "\nrun/main_scene=\"res://CORE/coreinit.tscn\"\n[autoload]\nLogger=\"*res://CORE/logger.gd\"\nPreprocessor=\"*res://CORE/preprocessor.gd\"")
|
||||
file.close()
|
||||
file = FileAccess.open(path.text + "/CORE/.coreinfo",FileAccess.WRITE)
|
||||
var file_content = {"version":versioninfo[branch]["version"],"branch":branch,"commit":versioninfo[branch]["commit"]}
|
||||
file.store_string(JSON.stringify(file_content,"\t",true,true))
|
||||
return true
|
||||
|
||||
func install_file(_result:int,response:int,_headers:PackedStringArray,body:PackedByteArray,filename:String,httpr:HTTPRequest):
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
[ext_resource type="FontFile" uid="uid://bc0ctgacnyhwl" path="res://Fonts/Jost.ttf" id="1_6mkda"]
|
||||
[ext_resource type="StyleBox" uid="uid://chff7gpygoygs" path="res://TextEdit_NormalStyle.tres" id="2_gunt1"]
|
||||
|
||||
[sub_resource type="Image" id="Image_4g5gf"]
|
||||
[sub_resource type="Image" id="Image_dp6vp"]
|
||||
data = {
|
||||
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 1, 179, 179, 179, 20, 188, 188, 188, 19, 255, 255, 255, 1, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 179, 179, 179, 20, 180, 180, 180, 64, 180, 180, 180, 64, 188, 188, 188, 19, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 188, 188, 188, 19, 180, 180, 180, 64, 180, 180, 180, 64, 188, 188, 188, 19, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 1, 188, 188, 188, 19, 188, 188, 188, 19, 255, 255, 255, 1, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
|
||||
"format": "RGBA8",
|
||||
|
@ -13,9 +13,9 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_njhtk"]
|
||||
image = SubResource("Image_4g5gf")
|
||||
image = SubResource("Image_dp6vp")
|
||||
|
||||
[sub_resource type="Image" id="Image_2oiar"]
|
||||
[sub_resource type="Image" id="Image_vxglj"]
|
||||
data = {
|
||||
"data": PackedByteArray(183, 183, 183, 46, 179, 179, 179, 50, 170, 170, 170, 6, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 180, 180, 180, 64, 180, 180, 180, 64, 179, 179, 179, 50, 180, 180, 180, 64, 180, 180, 180, 54, 170, 170, 170, 6, 255, 255, 255, 0, 255, 255, 255, 0, 180, 180, 180, 64, 180, 180, 180, 64, 170, 170, 170, 6, 180, 180, 180, 54, 180, 180, 180, 64, 180, 180, 180, 54, 170, 170, 170, 6, 255, 255, 255, 0, 180, 180, 180, 64, 180, 180, 180, 64, 255, 255, 255, 0, 170, 170, 170, 6, 180, 180, 180, 54, 180, 180, 180, 64, 182, 182, 182, 49, 255, 255, 255, 0, 180, 180, 180, 64, 180, 180, 180, 64, 255, 255, 255, 0, 213, 213, 213, 6, 180, 180, 180, 54, 180, 180, 180, 64, 182, 182, 182, 49, 255, 255, 255, 0, 180, 180, 180, 64, 180, 180, 180, 64, 213, 213, 213, 6, 180, 180, 180, 54, 180, 180, 180, 64, 178, 178, 178, 53, 204, 204, 204, 5, 255, 255, 255, 0, 180, 180, 180, 64, 180, 180, 180, 64, 184, 184, 184, 50, 180, 180, 180, 64, 178, 178, 178, 53, 204, 204, 204, 5, 255, 255, 255, 0, 255, 255, 255, 0, 180, 180, 180, 64, 180, 180, 180, 64, 178, 178, 178, 46, 182, 182, 182, 49, 204, 204, 204, 5, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 180, 180, 180, 64, 180, 180, 180, 64),
|
||||
"format": "RGBA8",
|
||||
|
@ -25,7 +25,7 @@ data = {
|
|||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_fcctv"]
|
||||
image = SubResource("Image_2oiar")
|
||||
image = SubResource("Image_vxglj")
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_p5yrs"]
|
||||
content_margin_left = 4.0
|
||||
|
|
Reference in a new issue