diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 3f69653..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,65 +0,0 @@ -environment: - nodejs_version: "16" - -platform: - - x86 - - x64 - -init: - - git config --global core.autocrlf true - -install: - - nuget install secure-file -ExcludeVersion - - secure-file\tools\secure-file -decrypt hardwario-cert.p12.enc -out hardwario-cert.p12 -secret %enc_secret% - # Get the latest stable version of Node.js or io.js - - ps: Install-Product node $env:nodejs_version - # install modules - - npm install node-pre-gyp -g - - npm install - - npm audit fix - -build_script: - - ps: >- - mkdir bin - - $downloadUri = ((Invoke-RestMethod -Method GET -Uri https://api.github.com/repos/hardwario/enmon/releases/latest).assets | Where-Object name -like "*win32.exe" ).browser_download_url - - echo "downloadUri : $downloadUri" - - Invoke-WebRequest -Uri "$downloadUri" -Out bin\enmon.exe - - dir bin - - - ps: Copy-Item -Path "patch\*" -Destination . -Recurse -Force - - - if "%platform%" == "x86" npm run package-win32 - - if "%platform%" == "x64" npm run package-win64 - - cd release - - dir - - ps: >- - - $platform = Get-ChildItem Env:PLATFORM - - $platform = $platform.value - - if($platform -eq "x86") { Dir *.exe | Rename-Item -NewName {$_.BaseName + "-32bit" + $_.Extension} } - - if($platform -eq "x64") { Dir *.exe | Rename-Item -NewName {$_.BaseName + "-64bit" + $_.Extension} } - - - dir - -artifacts: - - path: release\*.exe - -cache: - - node_modules - - '%USERPROFILE%\.electron' - -deploy: -- provider: GitHub - auth_token: - secure: 4cB5zdGSNXfNYzHtKibmbocO8WNtWe1g8090t4dUOuL7Y4u6/xjwv/0IwzrIWFK6 - artifact: /.*\.exe/ - force_update: true - on: - appveyor_repo_tag: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d70b26e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,87 +0,0 @@ -language: node_js - -node_js: - - "16" - -os: - - linux - - osx - -env: - matrix: - - BINARY_BUILDER="true" TRAVIS_NODE_VERSION="16" - -before_install: - - nvm install $TRAVIS_NODE_VERSION - - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi - - node --version - - node -p 'process.platform + "@" + process.arch' - - npm --version - - npm install node-pre-gyp -g - - mkdir bin - - node download-enmon.js - - chmod +x bin/enmon - -install: - - npm install - - npm audit fix - -script: - - cp -rfv patch/* ./ - - > - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - npm run package-linux64; - npm run package-linux-appimage; - - cp release/*.deb . - rename -v "s/linux/ubuntu/" *.deb - mv *.deb release - - cp release/*.tar.gz . - rename -v "s/linux/ubuntu/" *.tar.gz - mv *.tar.gz release - - if [[ "$ARCH" == "x64" ]]; then - cp release/*.AppImage . - rename -v "s/linux/ubuntu/" *.AppImage - mv *.AppImage release - fi - fi - - > - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - npm run package-mac; - fi - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.8 - - g++-4.8-multilib - - gcc-multilib - - libzmq-dev - - libkrb5-dev - - bc - - bsdtar - - curl - -cache: - directories: - - node_modules - - $HOME/.cache/electron - - $HOME/.cache/electron-builder - -deploy: - provider: releases - file: - - release/*.deb - - release/*.AppImage - - release/*.snap - - release/*.dmg - - release/*.tar.gz - file_glob: true - skip_cleanup: true - api_key: ${GITHUB_KEY} - on: - tags: true