Skip to content

Commit

Permalink
CI: Linux integration on AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dax89 committed Jan 17, 2021
1 parent 3f32e08 commit 4a76c74
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 180 deletions.
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
</div>
<br>
<div align="center">
<a href="https://travis-ci.org/REDasmOrg/REDasm">
<img src="https://img.shields.io/travis/REDasmOrg/REDasm.svg?style=flat-square&logo=travis">
</a>
<a href="https://ci.appveyor.com/project/Dax89/redasm">
<img src="https://ci.appveyor.com/api/projects/status/93dsq8rxb590h9nq?svg=true">
</a>
Expand Down
2 changes: 1 addition & 1 deletion ci/REDasm.desktop → REDasm.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Type=Application
Icon=redasm
Exec=REDasm
Categories=Utility;
Comment=Crossplatform, interactive, multiarchitecture disassembler
Comment=The OpenSource Disassembler

53 changes: 43 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
#

version: "{build}"
image: Visual Studio 2019

image:
- Visual Studio 2019
- Ubuntu2004

branches:
only:
Expand All @@ -13,22 +16,52 @@ artifacts:
- path: '**\*.zip'
name: REDasm

- path: '**\*.AppImage'
name: REDasm

init:
- ps: Update-AppveyorBuild -Version "REDasm_Windows_x86_64_$(Get-Date -format yyyyMMdd)_$env:appveyor_build_number"
- ps: |
if($isLinux) {
Update-AppveyorBuild -Version "REDasm_Linux_x86_64_$(Get-Date -format yyyyMMdd)_$env:appveyor_build_number"
}
else {
Update-AppveyorBuild -Version "REDasm_Windows_x86_64_$(Get-Date -format yyyyMMdd)_$env:appveyor_build_number"
}
skip_tags: true

install:
- git submodule update --init --recursive
- set QTCREATOR=C:\Qt\Tools\QtCreator\bin
- set QTDIR=C:\Qt\5.15.2\msvc2019_64\bin
- set PYTHONDIR=C:\Python37-x64
- set PATH=%QTDIR%;%QTCREATOR%;%PYTHONDIR%;%PATH%
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- cmd: set QTCREATOR=C:\Qt\Tools\QtCreator\bin
- cmd: set QTDIR=C:\Qt\5.15.2\msvc2019_64\bin
- cmd: set PYTHONDIR=C:\Python37-x64
- cmd: set PATH=%QTDIR%;%QTCREATOR%;%PYTHONDIR%;%PATH%
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"

build_script:
- mkdir build
- cd build
- cmake ..
- cmake --build . -j4 --config Release
- cmake --build . --target REDasmDeploy

# Windows
- cmd: cmake ..
- cmd: cmake --build . -j4 --config Release
- cmd: cmake --build . --target REDasmDeploy

# Linux
- sh: cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
- sh: make -j4
# Prepare AppImage
- sh: make install DESTDIR=$PWD/AppDir
- sh: wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
- sh: wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
- sh: chmod +x linuxdeploy*.AppImage
# Copy Icon and .desktop to AppImage folder
- sh: mkdir AppDir
- sh: mkdir -p AppDir/usr/share/applications
- sh: mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
- sh: cp ../REDasm/REDasm.desktop AppDir/usr/share/applications/
- sh: cp ../REDasm/res/logo.png AppDir/usr/share/icons/hicolor/256x256/apps/
# Generate AppImage
- sh: LD_LIBRARY_PATH=$PWD/AppDir/usr/lib/x86_64-linux-gnu ./linuxdeploy-x86_64.AppImage --appdir=AppDir --plugin qt --output appimage


25 changes: 0 additions & 25 deletions ci/build_appimage.sh

This file was deleted.

22 changes: 0 additions & 22 deletions ci/deploy.py

This file was deleted.

24 changes: 0 additions & 24 deletions ci/deploy_vars.py

This file was deleted.

36 changes: 0 additions & 36 deletions ci/package.py

This file was deleted.

15 changes: 0 additions & 15 deletions ci/prepare_appimage.py

This file was deleted.

0 comments on commit 4a76c74

Please sign in to comment.