Custom build profiles

This commit is contained in:
2024-12-30 14:52:23 +01:00
parent d96963b6ef
commit a84ba35d0a
7 changed files with 179 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
# Godot 4+ specific ignores # Godot 4+ specific ignores
.godot/ .godot/
/android/ /android/
builds/

View File

@@ -0,0 +1,7 @@
{
"disabled_build_options": {
},
"disabled_classes": [],
"type": "build_profile"
}

View File

@@ -0,0 +1,101 @@
{
"disabled_build_options": {
"disable_3d": true,
"disable_3d_physics": true,
"disable_navigation": true,
"module_text_server_adv_enabled": false,
"openxr": false
},
"disabled_classes": [
"AnimatableBody2D",
"ArrayMesh",
"AudioStreamGenerator",
"BaseMaterial3D",
"BoxMesh",
"CapsuleMesh",
"ColorPickerButton",
"Control",
"Curve3D",
"CylinderMesh",
"GLTFAccessor",
"GLTFAnimation",
"GLTFBufferView",
"GLTFCamera",
"GLTFDocument",
"GLTFDocumentExtension",
"GLTFLight",
"GLTFMesh",
"GLTFNode",
"GLTFPhysicsBody",
"GLTFPhysicsShape",
"GLTFSkeleton",
"GLTFSkin",
"GLTFSpecGloss",
"GLTFState",
"GLTFTexture",
"GLTFTextureSampler",
"HTTPRequest",
"ImmediateMesh",
"ImporterMesh",
"Joint2D",
"Light2D",
"LightOccluder2D",
"Line2D",
"LinkButton",
"Marker2D",
"MeshLibrary",
"MissingNode",
"MissingResource",
"MultiMesh",
"MultiplayerSpawner",
"MultiplayerSynchronizer",
"NavigationAgent2D",
"NavigationAgent3D",
"NavigationLink2D",
"NavigationMesh",
"NavigationMeshSourceGeometryData2D",
"NavigationMeshSourceGeometryData3D",
"NavigationObstacle2D",
"NavigationPolygon",
"NavigationRegion2D",
"Node3D",
"Noise",
"Occluder3D",
"OpenXRAction",
"OpenXRActionMap",
"OpenXRActionSet",
"OpenXRIPBinding",
"OpenXRInteractionProfile",
"Path2D",
"PathFollow2D",
"PhysicalBone2D",
"PlaceholderMesh",
"PointMesh",
"PrismMesh",
"RemoteTransform2D",
"RibbonTrailMesh",
"Shape3D",
"Shortcut",
"Skeleton2D",
"SkeletonModification2D",
"SkeletonModificationStack2D",
"SkeletonProfile",
"Skin",
"Sky",
"SphereMesh",
"StatusIndicator",
"SyntaxHighlighter",
"TextMesh",
"Texture3D",
"TorusMesh",
"TouchScreenButton",
"TubeTrailMesh",
"VideoStream",
"VideoStreamPlayback",
"Window",
"World3D",
"WorldEnvironment",
"X509Certificate"
],
"type": "build_profile"
}

65
export_presets.cfg Normal file
View File

@@ -0,0 +1,65 @@
[preset.0]
name="Windows Desktop"
platform="Windows Desktop"
runnable=true
advanced_options=true
dedicated_server=false
custom_features=""
export_filter="scenes"
export_files=PackedStringArray("res://scenes/test.tscn", "res://objects/brick_player.tscn", "res://objects/coin.tscn", "res://objects/collapsing_bridge.tscn", "res://objects/game_manager.tscn")
include_filter=""
exclude_filter=""
export_path="builds/optimized_for_size/Mr. Brick Adventures.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
script_export_mode=2
[preset.0.options]
custom_template/debug=""
custom_template/release="D:/Dev/godot/bin/godot.windows.template_release.x86_64.exe"
debug/export_console_wrapper=1
binary_format/embed_pck=true
texture_format/s3tc_bptc=true
texture_format/etc2_astc=false
binary_format/architecture="x86_64"
codesign/enable=false
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PackedStringArray()
application/modify_resources=false
application/icon="res://icon.svg"
application/console_wrapper_icon=""
application/icon_interpolation=4
application/file_version=""
application/product_version=""
application/company_name="Gabriel Kaszewski"
application/product_name="Mr. Brick Adventures"
application/file_description=""
application/copyright="2024"
application/trademarks=""
application/export_angle=0
application/export_d3d12=2
application/d3d12_agility_sdk_multiarch=false
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
$settings = New-ScheduledTaskSettingsSet
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
Start-ScheduledTask -TaskName godot_remote_debug
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force '{temp_dir}'"

View File

@@ -2,7 +2,7 @@
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_epuj5"] [ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_epuj5"]
[ext_resource type="Script" path="res://scripts/components/collectable.gd" id="2_y0k47"] [ext_resource type="Script" path="res://scripts/components/collectable.gd" id="2_y0k47"]
[ext_resource type="Resource" uid="uid://bc0esas5r2uy8" path="res://resources/collectables/coin.tres" id="3_fm2fq"] [ext_resource type="Resource" uid="uid://vql535ckoeqm" path="res://resources/collectables/coin.tres" id="3_fm2fq"]
[sub_resource type="CircleShape2D" id="CircleShape2D_3ask2"] [sub_resource type="CircleShape2D" id="CircleShape2D_3ask2"]
radius = 9.0 radius = 9.0

View File

@@ -16,6 +16,7 @@ config/name_localized={
"pl": "Przygody Pana Cegły" "pl": "Przygody Pana Cegły"
} }
config/version="in-dev" config/version="in-dev"
run/main_scene="res://scenes/test.tscn"
config/features=PackedStringArray("4.3", "GL Compatibility") config/features=PackedStringArray("4.3", "GL Compatibility")
boot_splash/show_image=false boot_splash/show_image=false
boot_splash/fullsize=false boot_splash/fullsize=false

View File

@@ -1,7 +1,7 @@
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://bc0esas5r2uy8"] [gd_resource type="Resource" load_steps=2 format=3 uid="uid://vql535ckoeqm"]
[ext_resource type="Script" path="res://scripts/resources/collectable_resource.gd" id="1_nmrta"] [ext_resource type="Script" path="res://scripts/resources/collectable_resource.gd" id="1_veemo"]
[resource] [resource]
script = ExtResource("1_nmrta") script = ExtResource("1_veemo")
amount = 1 amount = 1