From e1919d8819cfc46f89f2ef020c1c573583083ebc Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 11 Aug 2020 09:21:52 +0000 Subject: [PATCH] 1.1.2 ## [1.1.2](https://github.com/mob-sakai/UpmGitExtension/compare/v1.1.1...v1.1.2) (2020-08-11) ### Bug Fixes * Windows defender reporting OpenSesame compilers as a Trojan ([96b163b](https://github.com/mob-sakai/UpmGitExtension/commit/96b163b0189f071652f6a2d472494cb2858e13cc)), closes [#91](https://github.com/mob-sakai/UpmGitExtension/issues/91) --- CHANGELOG.md | 7 +++++++ Editor/Coffee.UpmGitExtension/AsmdefEx.cs | 10 +++++----- package.json | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46882c9..2e3e252 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.1.2](https://github.com/mob-sakai/UpmGitExtension/compare/v1.1.1...v1.1.2) (2020-08-11) + + +### Bug Fixes + +* Windows defender reporting OpenSesame compilers as a Trojan ([96b163b](https://github.com/mob-sakai/UpmGitExtension/commit/96b163b0189f071652f6a2d472494cb2858e13cc)), closes [#91](https://github.com/mob-sakai/UpmGitExtension/issues/91) + ## [1.1.1](https://github.com/mob-sakai/UpmGitExtension/compare/v1.1.0...v1.1.1) (2020-08-11) diff --git a/Editor/Coffee.UpmGitExtension/AsmdefEx.cs b/Editor/Coffee.UpmGitExtension/AsmdefEx.cs index 3d63d2a..5b3988f 100644 --- a/Editor/Coffee.UpmGitExtension/AsmdefEx.cs +++ b/Editor/Coffee.UpmGitExtension/AsmdefEx.cs @@ -186,7 +186,7 @@ static string Install(string packageId) { char sep = Path.DirectorySeparatorChar; string url = "https://globalcdn.nuget.org/packages/" + packageId.ToLower() + ".nupkg"; - string downloadPath = Path.GetTempFileName() + ".nuget"; + string downloadPath = ("Temp/" + Path.GetFileName(Path.GetTempFileName())).Replace('/', sep); string installPath = ("Library/" + packageId).Replace('/', sep); string cscToolExe = (installPath + "/tools/csc.exe").Replace('/', sep); @@ -212,7 +212,7 @@ static string Install(string packageId) switch (Application.platform) { case RuntimePlatform.WindowsEditor: - ExecuteCommand("certutil.exe", string.Format("-urlcache -f {1} \"{0}\"", downloadPath, url)); + ExecuteCommand("PowerShell.exe", string.Format("curl -O {0} {1}", downloadPath, url)); break; case RuntimePlatform.OSXEditor: ExecuteCommand("curl", string.Format("-o {0} -L {1}", downloadPath, url)); @@ -228,13 +228,13 @@ static string Install(string packageId) UnityEngine.Debug.LogFormat(k_LogHeader + "Extract {0} to {1} with 7z", downloadPath, installPath); EditorUtility.DisplayProgressBar("Custom Compiler Installer", string.Format("Extract {0}", downloadPath), 0.4f); - string appPath = EditorApplication.applicationContentsPath; + string appPath = EditorApplication.applicationContentsPath.Replace('/', sep); string args = string.Format("x {0} -o{1}", downloadPath, installPath); switch (Application.platform) { case RuntimePlatform.WindowsEditor: - ExecuteCommand(appPath + "¥Tools¥7z.exe", args); + ExecuteCommand(appPath + "\\Tools\\7z.exe", args); break; case RuntimePlatform.OSXEditor: case RuntimePlatform.LinuxEditor: @@ -502,7 +502,7 @@ static RecompileRequest() if (Core.LogEnabled) UnityEngine.Debug.LogFormat("Request to recompile: {0} ({1})", assemblyName, asmdefPath); - EditorApplication.delayCall += () => AssetDatabase.ImportAsset(asmdefPath); + AssetDatabase.ImportAsset(asmdefPath); } } #endif diff --git a/package.json b/package.json index 6b7260b..ae5002d 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.coffee.upm-git-extension", - "version": "1.1.1", + "version": "1.1.2", "description": "This package extends the UI of Unity Package Manager (UPM) for the packages installed from git repository.\n\n - Support GitHub, GitLab, Bitbucket, etc.\n - Link to the repogitory and offline documents\n - Install the package from git repository with UI\n - Update the package with a specific tag/branch\n - Remove the package", "license": "MIT", "repository": {