The .zip file won't copy on Download Section on .exe Windows

Godot Version

Godot 4.6.1

Question

Hi, I’m creating a launcher that copies a small .zip file from within the launcher to the Downloads folder on Windows.

In the editor, when I click the Download button, it copies the .zip file to the Downloads folder. However, when I export the launcher as an .exe file on Windows and click the Download button, the .zip file doesn’t copy to the Downloads folder.

extends Button

func _ready():
	set_language_from_system()
	text = tr("DOWNLOAD")  # Appliqué au chargement du nœud

func _on_button_pressed():
	var source_path = "res://Old Jean-Héon (MC TM) Games Compilation.zip"

	var user_profile = OS.get_environment("USERPROFILE")
	var destination_path = user_profile + "/Downloads/Old Jean-Héon (MC TM) Games Compilation.zip"

	print("📁 Source : " + source_path)
	print("📁 Destination : " + destination_path)

	var source_file = FileAccess.open(source_path, FileAccess.READ)
	if source_file == null:
		print("❌ Source introuvable. Erreur : " + str(FileAccess.get_open_error()))
		return

	var dest_file = FileAccess.open(destination_path, FileAccess.WRITE)
	if dest_file == null:
		print("❌ Écriture impossible. Erreur : " + str(FileAccess.get_open_error()))
		source_file.close()
		return

	dest_file.store_buffer(source_file.get_buffer(source_file.get_length()))
	source_file.close()
	dest_file.close()

	print("✅ Copié dans : " + destination_path)

func set_language_from_system():
	var system_locale = OS.get_locale().substr(0, 2)
	var available_locales = ["en", "fr", "pt"]
	if system_locale in available_locales:
		TranslationServer.set_locale(system_locale)
	else:
		TranslationServer.set_locale("en")

What do your prints say? Did you add the .zip to your exported resources?