Skip to content

Commit 348155f

Browse files
authored
Merge pull request #246 from k-takata/reenable-sodium
Enable libsodium again
2 parents 81dc87b + 8b51db3 commit 348155f

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ the [winpty repository](https://github.com/rprichard/winpty). This feature is
5858
currently considered experimental. Read the help at [:h
5959
terminal.txt](http://vimhelp.appspot.com/terminal.txt.html) for more
6060
information.
61-
<del>For supporting better encryption, it comes with the libsodium.dll from the
61+
For supporting better encryption, it comes with the libsodium.dll from the
6262
[libsodium repository](https://github.com/jedisct1/libsodium/releases/1.0.18-RELEASE)
6363
See the help at [:h 'cryptmethod'](https://vimhelp.org/options.txt.html#%27cryptmethod%27)
64-
for more details.</del> (currently disabled)
64+
for more details.
6565

6666
Note: The zip archive might be considered unsecure in Windows, causing Windows
6767
to display a dialog box "These files might be harmful to your computer...". If

appveyor.bat

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ set UPX_URL=https://github.com/upx/upx/releases/download/v3.94/upx394w.zip
7575
:: ShellExecAsUser
7676
set SHELLEXECASUSER_URL=https://nsis.sourceforge.io/mediawiki/images/1/1d/ShellExecAsUserUnicodeUpdate.zip
7777
:: Libsodium (currently disabled)
78-
::set LIBSODIUM_URL=https://github.com/jedisct1/libsodium/releases/download/1.0.18-RELEASE/libsodium-1.0.18-msvc.zip
79-
::set SODIUM_DIR=C:\libsodium
78+
set LIBSODIUM_URL=https://github.com/jedisct1/libsodium/releases/download/1.0.18-RELEASE/libsodium-1.0.18-msvc.zip
79+
set SODIUM_DIR=C:\libsodium
8080

8181
:: Subsystem version (targeting Windows XP)
8282
set SUBSYSTEM_VER32=5.01
@@ -190,13 +190,13 @@ call :downloadfile %SHELLEXECASUSER_URL% downloads\shellexecasuser.zip
190190
copy /Y c:\shellexecasuser\unicode\ShellExecAsUser.dll "%ProgramFiles(x86)%\NSIS\Plugins\x86-unicode"
191191

192192
:: Install Libsodium
193-
:: call :downloadfile %LIBSODIUM_URL% downloads\libsodium.zip
194-
:: 7z x downloads\libsodium.zip -oc:\ > nul || exit 1
195-
:: if /i "%ARCH%"=="x64" (
196-
:: copy /Y C:\libsodium\x64\Release\v140\dynamic\libsodium.dll vim\src\libsodium.dll
197-
:: ) else (
198-
:: copy /Y C:\libsodium\Win32\Release\v140\dynamic\libsodium.dll vim\src\libsodium.dll
199-
:: )
193+
call :downloadfile %LIBSODIUM_URL% downloads\libsodium.zip
194+
7z x downloads\libsodium.zip -oc:\ > nul || exit 1
195+
if /i "%ARCH%"=="x64" (
196+
copy /Y C:\libsodium\x64\Release\v140\dynamic\libsodium.dll vim\src\libsodium.dll
197+
) else (
198+
copy /Y C:\libsodium\Win32\Release\v140\dynamic\libsodium.dll vim\src\libsodium.dll
199+
)
200200

201201
:: Show PATH for debugging
202202
path
@@ -239,7 +239,7 @@ nmake -f Make_mvc.mak ^
239239
DYNAMIC_LUA=yes LUA=%LUA_DIR% ^
240240
DYNAMIC_RUBY=yes RUBY=%RUBY_DIR% RUBY_MSVCRT_NAME=msvcrt ^
241241
DYNAMIC_MZSCHEME=yes "MZSCHEME=%RACKET_DIR%" ^
242-
TERMINAL=yes ^
242+
TERMINAL=yes SODIUM=%SODIUM_DIR% ^
243243
|| exit 1
244244
:: Build CUI version
245245
nmake -f Make_mvc.mak ^
@@ -251,7 +251,7 @@ nmake -f Make_mvc.mak ^
251251
DYNAMIC_LUA=yes LUA=%LUA_DIR% ^
252252
DYNAMIC_RUBY=yes RUBY=%RUBY_DIR% RUBY_MSVCRT_NAME=msvcrt ^
253253
DYNAMIC_MZSCHEME=yes "MZSCHEME=%RACKET_DIR%" ^
254-
TERMINAL=yes ^
254+
TERMINAL=yes SODIUM=%SODIUM_DIR% ^
255255
|| exit 1
256256
:: Build translations
257257
pushd po
@@ -299,7 +299,7 @@ copy /Y GvimExt\*.reg GvimExt32\
299299
copy /Y ..\README.txt ..\runtime
300300
copy /Y ..\vimtutor.bat ..\runtime
301301
copy /Y *.exe ..\runtime\
302-
:: copy /Y libsodium.dll ..\runtime\
302+
copy /Y libsodium.dll ..\runtime\
303303
copy /Y xxd\*.exe ..\runtime
304304
copy /Y tee\*.exe ..\runtime
305305
mkdir ..\runtime\GvimExt64

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ deploy:
116116
* [Python3](https://www.python.org/downloads/) 3.10
117117
* [Racket](https://download.racket-lang.org/) 8.3 (BC)
118118
* [RubyInstaller](http://rubyinstaller.org/downloads/) 3.0
119-
<!-- * [libsodium](https://download.libsodium.org/libsodium/) 1.0.18 -->
119+
* [libsodium](https://download.libsodium.org/libsodium/) 1.0.18
120120
</details>
121121
122122
See the [README](https://github.com/vim/vim-win32-installer/blob/master/README.md) for detail.

0 commit comments

Comments
 (0)