Skip to content

Commit

Permalink
Increment version, remove win builds with cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
funbiscuit committed May 11, 2020
1 parent 0756778 commit 64ff363
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 39 deletions.
14 changes: 2 additions & 12 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.4.0.{build}
version: 0.5.0.{build}

image:
- Visual Studio 2017
Expand All @@ -24,8 +24,6 @@ for:
cache:
- build-msvc15_x64 -> appveyor-build.ps1
- build-msvc15_x86 -> appveyor-build.ps1
- build-cmd-msvc15_x64 -> appveyor-build.ps1
- build-cmd-msvc15_x86 -> appveyor-build.ps1

before_build:
- git submodule update --init
Expand All @@ -42,14 +40,6 @@ for:
- path: bin-msvc15_x86
type: zip
name: SpaceDisplay-msvc15-x86

- path: bin-cmd-msvc15_x64
type: zip
name: SpaceDisplay-cmd-msvc15-x64

- path: bin-cmd-msvc15_x86
type: zip
name: SpaceDisplay-cmd-msvc15-x86
-
matrix:
only:
Expand Down Expand Up @@ -84,7 +74,7 @@ deploy:
provider: GitHub
auth_token:
secure: 6xHQBZVK+RtxmddurGPIg7Kx5vecSN1vVxwbv35EQmsIey4DXDXYhwAW/yLXbNLJ
artifact: SpaceDisplay-msvc15-x64, SpaceDisplay-msvc15-x86, SpaceDisplay-cmd-msvc15-x64, SpaceDisplay-cmd-msvc15-x86, SpaceDisplay-x86_64.AppImage
artifact: SpaceDisplay-msvc15-x64, SpaceDisplay-msvc15-x86, SpaceDisplay-x86_64.AppImage
draft: true
prerelease: false
tag: $(APPVEYOR_REPO_TAG_NAME)
Expand Down
47 changes: 20 additions & 27 deletions ci/appveyor-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ $sufx = @("msvc15_x64", "msvc15_x86")
$qt_dlls = @("Qt5Core.dll","Qt5Gui.dll","Qt5Svg.dll","Qt5Widgets.dll")
$qt_plug = @("platforms\qwindows.dll")

$cmd_sfx = @("", "-cmd") #empty for normal version
$cmd_var = @("Off", "On")

for($i = 0; $i -lt $vc_arch.length; $i++){
if($i -eq 0){
$qt_path = "$env:QT_DIR_WIN_64"
Expand All @@ -21,29 +18,25 @@ for($i = 0; $i -lt $vc_arch.length; $i++){
$vc = $sufx[$i]
$vc_gen_sfx = $vc_arch[$i]

for($k = 0; $k -lt $cmd_var.length; $k++) {
$cs = $cmd_sfx[$k]
$cv = $cmd_var[$k]
# create build dir if it was not restored from cache
if(!(test-path "build$cs-$vc")){ mkdir "build$cs-$vc" }
Set-Location "build$cs-$vc"
cmake -DQT_WIN_PATH="$qt_path" -DWIN32_CONSOLE="$cv" -G "Visual Studio 15 2017$vc_gen_sfx" ..
cmake --build . --config Release
Set-Location ..

# create folders for binaries
mkdir "bin$cs-$vc"
mkdir "bin$cs-$vc\platforms"

# copy executable and dll's
Move-Item "build$cs-$vc\app-gui\Release\spacedisplay_gui.exe" "bin$cs-$vc\spacedisplay.exe"
for($j = 0; $j -lt $qt_dlls.length; $j++){
$dll = $qt_dlls[$j]
Copy-Item "$qt_path\bin\$dll" "bin$cs-$vc\$dll"
}
for($j = 0; $j -lt $qt_plug.length; $j++){
$dll = $qt_plug[$j]
Copy-Item "$qt_path\plugins\$dll" "bin$cs-$vc\$dll"
}
# create build dir if it was not restored from cache
if(!(test-path "build-$vc")){ mkdir "build-$vc" }
Set-Location "build-$vc"
cmake -DQT_WIN_PATH="$qt_path" -DWIN32_CONSOLE="Off" -G "Visual Studio 15 2017$vc_gen_sfx" ..
cmake --build . --config Release
Set-Location ..

# create folders for binaries
mkdir "bin-$vc"
mkdir "bin-$vc\platforms"

# copy executable and dll's
Move-Item "build-$vc\app-gui\Release\spacedisplay_gui.exe" "bin-$vc\spacedisplay.exe"
for($j = 0; $j -lt $qt_dlls.length; $j++){
$dll = $qt_dlls[$j]
Copy-Item "$qt_path\bin\$dll" "bin-$vc\$dll"
}
for($j = 0; $j -lt $qt_plug.length; $j++){
$dll = $qt_plug[$j]
Copy-Item "$qt_path\plugins\$dll" "bin-$vc\$dll"
}
}

0 comments on commit 64ff363

Please sign in to comment.