Skip to content
Permalink
Browse files

Add openssl to windows

  • Loading branch information...
Flakebi committed Jan 29, 2019
1 parent 4c13b37 commit 38e9ac4ebe28ea5766aa2ec441aec21218bdc09e
Showing with 6 additions and 5 deletions.
  1. +6 −5 .appveyor/windows.yml
@@ -2,6 +2,7 @@ version: 0.1.{build}
image: Visual Studio 2017
platform: x64
clone_depth: 1
clone_folder: C:\projects\simple-bot
branches:
only:
# Release tags
@@ -18,11 +19,11 @@ environment:

cache:
- C:\Users\appveyor\.cargo\registry
- target
- C:\projects\simple-bot\target

install:
- ps: >-
$Env:PATH += ';C:\msys64\usr\bin'
- ps: $Env:PATH += ';C:\msys64\usr\bin'
- ps: $Env:OPENSSL_DIR = 'C:\OpenSSL-v111-Win64'
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET% --default-toolchain %CHANNEL%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
@@ -36,11 +37,11 @@ build_script:
test_script:
- cargo test

# TODO Deploy with openssl
deploy_script:
- ps: >-
if(${env:UPLOAD_TOKEN}) {
cd([io.path]::combine("${env:APPVEYOR_BUILD_FOLDER}", "target", "release"))
Compress-Archive -Path .\simple-bot -DestinationPath SimpleBot.zip
Copy-Item ${env:OPENSSL_DIR}\bin\*.dll .\
Compress-Archive -Path simple-bot.exe,libcrypto-1_1-x64.dll,libssl-1_1-x64.dll -DestinationPath SimpleBot.zip
Invoke-RestMethod -Uri "https://splamy.de/api/nightly/simplebot/${env:APPVEYOR_REPO_BRANCH}_windows?token=${env:UPLOAD_TOKEN}&filename=SimpleBot.zip&commit=${env:APPVEYOR_REPO_COMMIT}&version=0.1.0" -Headers @{ "Content-Type" = "application/zip" } -Method Put -InFile .\SimpleBot.zip
}

0 comments on commit 38e9ac4

Please sign in to comment.
You can’t perform that action at this time.