Closed basstal closed 4 years ago
@basstal Sorry. I don't know much about network proxy.
Can you download the following nuget package without setting up a proxy?
curl -o OpenSesame.Net.Compilers.3.4.0-beta.4.zip -L https://www.nuget.org/api/v2/package/OpenSesame.Net.Compilers/3.4.0-beta.4
if you can download it, I should change the download URL for the package.
I can't visit URL https://www.nuget.org/api/v2/package/OpenSesame.Net.Compilers/3.4.0-beta.4 without proxy...
The problem is, I don't know how to setup the proxy when unity execute command 'curl xxxx', seems like this curl request didn't use my export proxy settings in zsh. I can download OpenSesame.Net.Compilers.3.4.0-beta.4.zip in zsh but not in unity.
@basstal
The problem is, I don't know how to setup the proxy when unity execute command 'curl xxxx',
Me too.
Can you download the following nuget package without setting up a proxy?
curl -o OpenSesame.Net.Compilers.3.4.0-beta.4.zip -L https://github.com/mob-sakai/UpmGitExtension/files/5140976/opensesame.net.compilers.3.4.0-beta.4.zip
I should use WebClient.DownloadFile
instead of curl
command.
However, it will lose .Net 3.5 support.
sad..
Thank you for your help!
My installation failed as well just a little bit ago. Not really sure how the curl command works, but for some reason when I ran it in my project with the keenanwoodall/Deform package present, it some how caused Unity to say Deform's dependencies were incorrect. I didn't edit any other stuff prior and it was just fine before the curl command.
I removed the Deform package as I luckily wasn't using it yet and removed relevant lines in the manifest which seems to have fixed it. I then removed this package and all pertaining lines as well. Attempted to re-run said command which still failed. I again removed the package's lines from manifest file. Imported the repo from git using https and it worked just fine.
Not sure if it was me using a VPN, Unity bug, or what that caused an issue or what but all is well. just thought I would put this here since the issue was opened less than 24 hours ago.
Unity 2020.1 Windows 10 UPM Git Extension 1.3.1
Hope this helps! Thank you for taking the time to share this wonderful extension with us!
@basstal @FullMe7alJacke7 Thanks for your help.
According to this manual, you need a launch script (.cmd
or .command
) to set the environment variables HTTP_PROXY
and HTTPS_PROXY
.
https://docs.unity3d.com/2019.3/Documentation/Manual/upm-network.html
Save the following command as launchUnityHub.cmd
and run it.
@echo off
set HTTP_PROXY=http://proxy-url:port
set HTTPS_PROXY=http://proxy-url:port
start "" "C:\Program Files\Unity Hub\Unity Hub.exe"
Execute the following command and run launchUnityHub.command
.
echo '#!/bin/bash
export HTTP_PROXY=http://proxy-url:port
export HTTPS_PROXY=http://proxy-url:port
nohup "/Applications/Unity Hub.app/Contents/MacOS/Unity Hub" &>/dev/null &' > launchUnityHub.command
chmod +x launchUnityHub.command
should I use any proxy??