Attempt to fix the Linux export

The exported version still doesn't run for some reason?
This commit is contained in:
Sebastian Morr 2020-09-04 01:32:05 +02:00
parent e2764bef24
commit 8e70be0b93
4 changed files with 22 additions and 8 deletions

View file

@ -5,7 +5,7 @@ platform="Linux/X11"
runnable=true runnable=true
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter="levels/*, scripts/*"
exclude_filter="" exclude_filter=""
export_path="" export_path=""
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )
@ -20,6 +20,7 @@ texture_format/etc=false
texture_format/etc2=false texture_format/etc2=false
texture_format/no_bptc_fallbacks=true texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true binary_format/64_bits=true
binary_format/embed_pck=false
custom_template/release="" custom_template/release=""
custom_template/debug="" custom_template/debug=""
@ -30,7 +31,7 @@ platform="Mac OSX"
runnable=true runnable=true
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter="levels/*, scripts/*"
exclude_filter="" exclude_filter=""
export_path="" export_path=""
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )
@ -39,8 +40,8 @@ script_encryption_key=""
[preset.1.options] [preset.1.options]
custom_package/debug="" custom_template/debug=""
custom_package/release="" custom_template/release=""
application/name="Untitled Game" application/name="Untitled Game"
application/info="" application/info=""
application/icon="" application/icon=""
@ -50,6 +51,8 @@ application/short_version="1.0"
application/version="1.0" application/version="1.0"
application/copyright="" application/copyright=""
display/high_res=false display/high_res=false
privacy/camera_usage_description=""
privacy/microphone_usage_description=""
texture_format/s3tc=true texture_format/s3tc=true
texture_format/etc=false texture_format/etc=false
texture_format/etc2=false texture_format/etc2=false
@ -61,7 +64,7 @@ platform="Windows Desktop"
runnable=true runnable=true
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter="levels/*, scripts/*"
exclude_filter="" exclude_filter=""
export_path="" export_path=""
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )
@ -76,8 +79,17 @@ texture_format/etc=false
texture_format/etc2=false texture_format/etc2=false
texture_format/no_bptc_fallbacks=true texture_format/no_bptc_fallbacks=true
binary_format/64_bits=true binary_format/64_bits=true
binary_format/embed_pck=false
custom_template/release="" custom_template/release=""
custom_template/debug="" custom_template/debug=""
codesign/enable=false
codesign/identity=""
codesign/password=""
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PoolStringArray( )
application/icon="" application/icon=""
application/file_version="" application/file_version=""
application/product_version="" application/product_version=""
@ -94,7 +106,7 @@ platform="HTML5"
runnable=true runnable=true
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter="levels/*, scripts/*"
exclude_filter="" exclude_filter=""
export_path="" export_path=""
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )

View file

@ -52,6 +52,7 @@ func sh(command, wd="/tmp/"):
return output[0] return output[0]
func read_file(path): func read_file(path):
print("read "+path)
var file = File.new() var file = File.new()
file.open(path, File.READ) file.open(path, File.READ)
var content = file.get_as_text() var content = file.get_as_text()

View file

@ -26,6 +26,7 @@ func _ready():
input.grab_focus() input.grab_focus()
func list_levels(): func list_levels():
return ["01-blob", "02-tree", "03-commit", "04-parents"]
var levels = [] var levels = []
var dir = Directory.new() var dir = Directory.new()
dir.open("levels") dir.open("levels")
@ -48,7 +49,7 @@ func load_level(id):
var level = levels[id] var level = levels[id]
var cwd = game.run("pwd") var cwd = game.run("pwd")
var tmp_prefix = "/tmp/" var tmp_prefix = "/tmp/"
var level_prefix = cwd+"/levels/" var level_prefix = "res://levels/"
var goal_repository_path = tmp_prefix+"goal/" var goal_repository_path = tmp_prefix+"goal/"
var active_repository_path = tmp_prefix+"active/" var active_repository_path = tmp_prefix+"active/"

View file

@ -15,7 +15,7 @@ _global_script_class_icons={
[application] [application]
config/name="Untitled Game" config/name="git-hydra"
run/main_scene="res://main.tscn" run/main_scene="res://main.tscn"
[autoload] [autoload]