-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
README: Manually: Unzip the latest release, and add to the path. #296
Comments
Well, you need to choose a version according to your windows version/processor-platform... In the past I had only one build that worked for any platform, but to gain the performance improvements of net7.0 (related blog post) I had to build separatedly for each platform. Initially I kept one You have 3 options built using the faster net7.0
and the old build (net46-AnyCpu) using net4.6 is still available. I can't guarantee it will stay forever, given that keeping it means I can't use many of modern net features. It's only advantage is that it's works on any-cpu, so you don't need to check the processor type... You just need net4.6, which is ubiquitous in win 10 & 11. If I were in your spot, I would embed the latest '.msi' that matches the platform and trigger it's installation silently. Also you can make your packer scripts download the latest directly: Or, if you are familiar with nuget, you can download from the nuget feed: https://www.nuget.org/packages/gsudo I can help you automate this part of your installer builder if you want. It should be easy to download a zip and extract a file. Probably easier to do it before generating the ddev_windows_installer.vX.Y.Z.exe. For example if the install builder is embedding the gsudo.exe from $zipUrl = "https://github.com/gerardog/gsudo/releases/latest/download/gsudo.portable.zip"
$localTempfile = "$env:temp/gsudo.portable.zip"
$localTempFolder = "$env:temp/gsudo-installer"
$finalLocation = "./3rdParty/"
# Download
Invoke-WebRequest -Uri $zipUrl -OutFile $localTempfile
# Unzip
Expand-Archive -Path $localTempfile -DestinationPath $localTempFolder -Force
# create target folder (force to swallow 'already exists error'
mkdir $finalLocation -force
# pick the relevant file
copy-Item -Path "$localTempFolder/x64/gsudo.exe" -Destination $finalLocation -Force |
Thanks, I'll try to do a little PR to the README if you don't get there first. Unfortunately I'm using nsis for the Windows installer and embedding gsudo.exe that way, here's the new technique: It's a lot harder to do with a way-off-brand scripting language like nsis. |
Oh I see.... I thought your installer had gsudo.exe embedded inside ddev_windows_installer.vX.Y.Z.exe.... If that was the case, then your build pipeline preparation script Given that's not the case then...
|
We stopped doing this a couple of years ago because chocolatey called gsudo a virus popping us over the allowed detection count.
The reality I think is that everybody uses chocolatey to install DDEV, and gsudo is listed as a dependency there, so they end up using the choco-installed gsudo anyway. But since they can just download the installer we have to handle it somehow. Traditional Windows isn't really what we want to do, last choice for everything after WSL2. The idea of calling one installer from another sounds pretty scary. And I barely (or don't?) understand nsis at all :( |
Issue Description
I've been using a fork for DDEV's install for some time but really want to use your releases. It's by far easiest to use a exe file, as requested in #88, but I'm moving on!
It seems like the README may be from long ago. it says:
I assume this means "Unzip gsudo_portable.zip" and extract the gsudo.exe from it. But there are lots of things in there:
I would bet that I would want the x64/gsudo.exe for any ordinary Windows machine. Is that the only thing I need?
The text was updated successfully, but these errors were encountered: