Autodownload
This commit is contained in:
parent
4fa6413d78
commit
1244832f41
96 changed files with 167 additions and 0 deletions
15
version_save.gd
Normal file
15
version_save.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env -S godot -s
|
||||
extends SceneTree
|
||||
|
||||
func _init() -> void:
|
||||
var output = []
|
||||
OS.execute("git",["rev-parse","--short","HEAD"],output)
|
||||
var ver_hash = output[0].replace("\n","")
|
||||
var version = Version.new()
|
||||
version.version = ver_hash
|
||||
match ResourceSaver.save(version,"res://version.tres"):
|
||||
Error.OK:
|
||||
print("Version succesfully saved")
|
||||
var error:
|
||||
print("Version has nod been saved. Error number: " + str(error))
|
||||
quit()
|
||||
Loading…
Add table
Add a link
Reference in a new issue