summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-07-11 00:35:20 +0800
committerruki <[email protected]>2019-07-10 21:32:02 +0800
commita8851e6f0446177e609bb087ea2c7117e3af3030 (patch)
tree54a13c29d22c40c339d2ecea675a8d4b86a9e1d6
parentac11149472ddf3da6918c7deec62059c7cec25e7 (diff)
update ci urls to mirror
-rw-r--r--.appveyor.yml8
-rw-r--r--xmake/core/_xmake_main.lua1
2 files changed, 4 insertions, 5 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 648605b89..63804264e 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -13,16 +13,16 @@ install:
- ps: Push-Location C:/
- ps: (New-Item ./winenv/bin -ItemType Directory).FullName
# NSIS
- - ps: Invoke-WebRequest "https://svwh.dl.sourceforge.net/project/nsis/NSIS 3/3.04/nsis-3.04.zip" -UseBasicParsing -OutFile ./nsis.zip
- - ps: Invoke-WebRequest "https://svwh.dl.sourceforge.net/project/nsis/NSIS 3/3.04/nsis-3.04-strlen_8192.zip" -UseBasicParsing -OutFile ./nsis-longstr.zip
- - ps: Invoke-WebRequest "https://nsis.sourceforge.io/mediawiki/images/8/8f/UAC.zip" -UseBasicParsing -OutFile ./nsis-uac.zip
+ - ps: Invoke-WebRequest "https://github.com/xmake-mirror/nsis/releases/download/v30b3/nsis-3.04.zip" -UseBasicParsing -OutFile ./nsis.zip
+ - ps: Invoke-WebRequest "https://github.com/xmake-mirror/nsis/releases/download/v30b3/nsis-3.04-strlen_8192.zip" -UseBasicParsing -OutFile ./nsis-longstr.zip
+ - ps: Invoke-WebRequest "https://github.com/xmake-mirror/nsis/releases/download/v30b3/UAC.zip" -UseBasicParsing -OutFile ./nsis-uac.zip
- ps: Expand-Archive ./nsis.zip -DestinationPath ./nsis
- ps: Move-Item ./nsis/*/* ./nsis
- ps: Expand-Archive ./nsis-longstr.zip -DestinationPath ./nsis -Force
- ps: Expand-Archive ./nsis-uac.zip -DestinationPath ./nsis -Force
- ps: Move-Item ./nsis/UAC.nsh ./nsis/Include/
# unzip
- - ps: Invoke-WebRequest "https://svwh.dl.sourceforge.net/project/gnuwin32/unzip/5.51-1/unzip-5.51-1-bin.zip" -UseBasicParsing -OutFile .\unzip.zip
+ - ps: Invoke-WebRequest "https://github.com/xmake-mirror/gnuwin32-unzip/releases/download/5.51.1/unzip-5.51-1-bin.zip" -UseBasicParsing -OutFile .\unzip.zip
- ps: Expand-Archive ./unzip.zip -DestinationPath ./unzip
- ps: Copy-Item ./unzip/bin/unzip.exe ./winenv/bin
# curl
diff --git a/xmake/core/_xmake_main.lua b/xmake/core/_xmake_main.lua
index 5e0a3a160..f21500d78 100644
--- a/xmake/core/_xmake_main.lua
+++ b/xmake/core/_xmake_main.lua
@@ -57,7 +57,6 @@ function loadfile(filepath)
readopt.encoding = "binary" -- read file by binary mode, will be faster
displaypath = path.join("$(programdir)", path.relative(filepath, xmake._PROGRAM_DIR))
elseif filepath:startswith(xmake._PROJECT_DIR) then
- --readopt.encoding = "binary" -- read file by binary mode, will be faster
displaypath = path.join("$(projectdir)", path.relative(filepath, xmake._PROJECT_DIR))
end