Skip to content

Conversation

@ergolyam
Copy link

@ergolyam ergolyam commented Mar 3, 2025

This pull request refines the build-zip-windows job by creating the process to generate a Windows ZIP archive. The changes are isolated to the Windows ZIP build and do not affect the Debian, macOS, MSI, or Router package jobs.

How start.bat Works

The generated start.bat is a post-install script that enhances the user experience by automating configuration and launch tasks:

  • Elevation Check:

    • The script checks if it is running with administrative privileges. If not, it re-launches itself with elevated permissions using PowerShell. This ensures that subsequent operations requiring admin rights can proceed.
  • Configuration File Generation:

    • It verifies the existence of yggdrasil.conf in the current directory.
    • If the configuration file is missing but yggdrasil.exe is present, the script generates a new configuration file by running yggdrasil.exe -genconf.
    • Error handling is provided so that if the configuration generation fails, the user is informed and the script exits appropriately.
  • Launching Yggdrasil:

    • Once the configuration file is confirmed to exist, the script launches Yggdrasil using the -useconffile flag.
    • The script ensures that errors during startup are caught and communicated to the user, pausing execution if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant