Skip to content
Snippets Groups Projects
Commit 6c7fd9ec authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Windows build was broken

parent fc6f4e6b
No related branches found
No related tags found
No related merge requests found
...@@ -17,57 +17,57 @@ install: ...@@ -17,57 +17,57 @@ install:
build: off build: off
after_test: after_test:
- npm prune --production - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm prune --production
- npm install duniter-bma --save --production - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install duniter-bma --save --production
- npm install duniter-crawler --save --production - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install duniter-crawler --save --production
- npm install duniter-keypair --save --production - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install duniter-keypair --save --production
- npm install duniter-prover --save --production - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install duniter-prover --save --production
- powershell .\\ci\\appveyor\\inno_setup.ps1 - if [%APPVEYOR_REPO_TAG_NAME%] neq [] powershell .\\ci\\appveyor\\inno_setup.ps1
- rd /s /q %APPDATA%\..\Local\NuGet\Cache - if [%APPVEYOR_REPO_TAG_NAME%] neq [] rd /s /q %APPDATA%\..\Local\NuGet\Cache
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH% - if [%APPVEYOR_REPO_TAG_NAME%] neq [] set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
- set SRC=%cd% - if [%APPVEYOR_REPO_TAG_NAME%] neq [] set SRC=%cd%
- echo %SRC% - if [%APPVEYOR_REPO_TAG_NAME%] neq [] echo %SRC%
- copy misc\MSVSVersion.py %APPDATA%\npm\node_modules\nw-gyp\gyp\pylib\gyp\MSVSVersion.py - if [%APPVEYOR_REPO_TAG_NAME%] neq [] copy misc\MSVSVersion.py %APPDATA%\npm\node_modules\nw-gyp\gyp\pylib\gyp\MSVSVersion.py
- set NW_VERSION=0.17.6 - if [%APPVEYOR_REPO_TAG_NAME%] neq [] set NW_VERSION=0.17.6
- set NW_RELEASE=v0.17.6 - if [%APPVEYOR_REPO_TAG_NAME%] neq [] set NW_RELEASE=v0.17.6
- echo %NW_RELEASE% - if [%APPVEYOR_REPO_TAG_NAME%] neq [] echo %NW_RELEASE%
- cd node_modules/wotb - if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd node_modules/wotb
- npm install --build-from-source - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install --build-from-source
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure - if [%APPVEYOR_REPO_TAG_NAME%] neq [] node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build - if [%APPVEYOR_REPO_TAG_NAME%] neq [] node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\wotb.node %cd%\lib\binding\Release\node-v%ADDON_VERSION%-win32-x64\wotb.node /Y - if [%APPVEYOR_REPO_TAG_NAME%] neq [] copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\wotb.node %cd%\lib\binding\Release\node-v%ADDON_VERSION%-win32-x64\wotb.node /Y
- cd ../naclb - if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd ../naclb
- npm install --build-from-source - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install --build-from-source
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure - if [%APPVEYOR_REPO_TAG_NAME%] neq [] node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build - if [%APPVEYOR_REPO_TAG_NAME%] neq [] node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\naclb.node %cd%\lib\binding\Release\node-v%ADDON_VERSION%-win32-x64\naclb.node /Y - if [%APPVEYOR_REPO_TAG_NAME%] neq [] copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\naclb.node %cd%\lib\binding\Release\node-v%ADDON_VERSION%-win32-x64\naclb.node /Y
- cd ../scryptb - if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd ../scryptb
- npm install --build-from-source - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install --build-from-source
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure - if [%APPVEYOR_REPO_TAG_NAME%] neq [] node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build - if [%APPVEYOR_REPO_TAG_NAME%] neq [] node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\scryptb.node %cd%\lib\binding\Release\node-v%ADDON_VERSION%-win32-x64\scryptb.node /Y - if [%APPVEYOR_REPO_TAG_NAME%] neq [] copy %cd%\lib\binding\Release\node-webkit-%NW_RELEASE%-win32-x64\scryptb.node %cd%\lib\binding\Release\node-v%ADDON_VERSION%-win32-x64\scryptb.node /Y
- cd ../sqlite3 - if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd ../sqlite3
- npm install --build-from-source - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install --build-from-source
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure - if [%APPVEYOR_REPO_TAG_NAME%] neq [] node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 configure
- node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build - if [%APPVEYOR_REPO_TAG_NAME%] neq [] node-pre-gyp --runtime=node-webkit --target=%NW_VERSION% --msvs_version=2015 build
- copy %cd%\lib\binding\node-webkit-%NW_RELEASE%-win32-x64\node_sqlite3.node %cd%\lib\binding\node-v%ADDON_VERSION%-win32-x64\node_sqlite3.node /Y - if [%APPVEYOR_REPO_TAG_NAME%] neq [] copy %cd%\lib\binding\node-webkit-%NW_RELEASE%-win32-x64\node_sqlite3.node %cd%\lib\binding\node-v%ADDON_VERSION%-win32-x64\node_sqlite3.node /Y
- cd ../.. - if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd ../..
- npm install duniter-ui --save --production - if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install duniter-ui --save --production
- rd /s /q %cd%\node_modules\duniter-ui\node_modules - if [%APPVEYOR_REPO_TAG_NAME%] neq [] rd /s /q %cd%\node_modules\duniter-ui\node_modules
- cd .. - if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd ..
- mkdir duniter_release - if [%APPVEYOR_REPO_TAG_NAME%] neq [] mkdir duniter_release
- set NW=nwjs-%NW_RELEASE%-win-x64 - if [%APPVEYOR_REPO_TAG_NAME%] neq [] set NW=nwjs-%NW_RELEASE%-win-x64
- echo %NW% - if [%APPVEYOR_REPO_TAG_NAME%] neq [] echo %NW%
- set NW_GZ=%NW%.zip - if [%APPVEYOR_REPO_TAG_NAME%] neq [] set NW_GZ=%NW%.zip
- echo %NW_GZ% - if [%APPVEYOR_REPO_TAG_NAME%] neq [] echo %NW_GZ%
- appveyor DownloadFile https://dl.nwjs.io/%NW_RELEASE%/nwjs-%NW_RELEASE%-win-x64.zip %NW_GZ% - if [%APPVEYOR_REPO_TAG_NAME%] neq [] appveyor DownloadFile https://dl.nwjs.io/%NW_RELEASE%/nwjs-%NW_RELEASE%-win-x64.zip %NW_GZ%
- 7z x %NW_GZ% 1> null - if [%APPVEYOR_REPO_TAG_NAME%] neq [] 7z x %NW_GZ% 1> null
- move %NW% %cd%\duniter_release\nw - if [%APPVEYOR_REPO_TAG_NAME%] neq [] move %NW% %cd%\duniter_release\nw
- mkdir %cd%\duniter_release\sources - if [%APPVEYOR_REPO_TAG_NAME%] neq [] mkdir %cd%\duniter_release\sources
- xcopy %SRC%\gui\* %cd%\duniter_release\nw\ /s /e - if [%APPVEYOR_REPO_TAG_NAME%] neq [] xcopy %SRC%\gui\* %cd%\duniter_release\nw\ /s /e
- xcopy %SRC%\* %cd%\duniter_release\sources\ /s /e - if [%APPVEYOR_REPO_TAG_NAME%] neq [] xcopy %SRC%\* %cd%\duniter_release\sources\ /s /e
- iscc %cd%\duniter_release\sources\duniter.iss /DROOT_PATH=%cd%\duniter_release - if [%APPVEYOR_REPO_TAG_NAME%] neq [] iscc %cd%\duniter_release\sources\duniter.iss /DROOT_PATH=%cd%\duniter_release
- move %cd%\duniter_release\Duniter.exe %cd%\duniter\duniter-desktop-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe - if [%APPVEYOR_REPO_TAG_NAME%] neq [] move %cd%\duniter_release\Duniter.exe %cd%\duniter\duniter-desktop-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe
artifacts: artifacts:
- path: duniter*.exe - path: duniter*.exe
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment