Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build portable zip version of yggdrasil go for windows #1237

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

grisha765
Copy link

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