-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
163 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,59 @@ | ||
version: 1.0.{build} | ||
image: | ||
- Visual Studio 2019 | ||
environment: | ||
CI_BUILD: true | ||
APPVEYOR_SAVE_CACHE_ON_ERROR: true | ||
APPVEYOR_CACHE_SKIP_RESTORE: true | ||
VcpkgAutoLink: false | ||
dep_secret: | ||
secure: Go1kB2XlFAIQvngM+YPkhD7p+Cmfzo1rcNWCiA8E6Lo= | ||
dep_salt: | ||
secure: 39s+KlQG6Hg9XF4FP6/KW+KrDYYdxj1ZoS4zoiX2LuS62MczMH5hoq2ZOmjyx6wD6qip9xBcltozTX6hn8fK3g== | ||
init: | ||
# Do a clean build if we are on the master branch (usually only for releases) | ||
- ps: IF ($env:APPVEYOR_REPO_BRANCH -eq "master") {$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"} | ||
# Do a clean build if we are on the main branch (usually only for releases) | ||
#- ps: IF ($env:APPVEYOR_REPO_BRANCH -eq "main") {$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"} | ||
- ps: >- | ||
if ($env:APPVEYOR_REPO_TAG -eq "true") | ||
{ | ||
$env:RETROPLUG_VERSION = "$env:APPVEYOR_REPO_TAG_NAME" | ||
} | ||
else | ||
{ | ||
$env:RETROPLUG_VERSION = "dev-$($env:APPVEYOR_REPO_COMMIT.Substring(0, 7))" | ||
} | ||
Update-AppveyorBuild -Version "$env:RETROPLUG_VERSION" | ||
clone_folder: c:\retroplug | ||
cache: c:\retroplug\build | ||
install: | ||
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1')) | ||
- cmd: appveyor-tools\secure-file -decrypt ci/dep.7z.enc -secret %dep_secret% -salt %dep_salt% | ||
- sh: ./appveyor-tools/secure-file -decrypt ci/dep.7z.enc -secret $dep_secret -salt $dep_salt | ||
|
||
- cmd: appveyor DownloadFile https://github.com/Microsoft/vswhere/releases/download/2.3.2/vswhere.exe | ||
- cmd: appveyor DownloadFile https://github.com/premake/premake-core/releases/download/v5.0.0-alpha16/premake-5.0.0-alpha16-windows.zip | ||
- cmd: appveyor DownloadFile https://github.com/gbdev/rgbds/releases/download/v0.5.1/rgbds-0.5.1-win64.zip | ||
|
||
- cmd: 7z e premake-5.0.0-alpha16-windows.zip | ||
- cmd: 7z e rgbds-0.5.1-win64.zip | ||
- cmd: 7z e ci/dep.7z | ||
|
||
- cmd: set PATH=c:\retroplug;%PATH% | ||
build_script: | ||
- cmd: premake5 vs2019 | ||
- cmd: msbuild build/vs2019/ScriptCompiler.vcxproj /property:Configuration=Release /property:Platform=x64 | ||
- cmd: c:\retroplug\build\vs2019\bin\x64\Release\ScriptCompiler.exe c:\retroplug\src\compiler.config.lua | ||
- cmd: premake5 vs2019 | ||
- cmd: msbuild build/vs2019/RetroPlug-app.vcxproj /property:Configuration=Release /property:Platform=x64 | ||
- cmd: deploy.bat | ||
artifacts: | ||
- path: build\deploy\RetroPlug_standalone*.zip | ||
name: 'RetroPlug Standalone Win64' | ||
- path: build\deploy\RetroPlug_vst2*.zip | ||
name: 'RetroPlug VST2 Win64' | ||
deploy: | ||
tag: $(APPVEYOR_REPO_TAG_NAME) | ||
release: 'RetroPlug $(APPVEYOR_BUILD_VERSION)' | ||
description: 'RetroPlug $(APPVEYOR_BUILD_VERSION)' | ||
provider: GitHub | ||
auth_token: | ||
secure: /qpQ094QMnI1maDmM/leovgbLDBFluaEi22tjmdjRTXaDHER2apNW5M9qEvyb8p5 | ||
artifact: /.*\.zip/ | ||
draft: true | ||
prerelease: false | ||
on: | ||
APPVEYOR_REPO_TAG: true |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
return { | ||
plugin = { | ||
version = "0.3.0", | ||
version = "0.3.4", | ||
name = "RetroPlug", | ||
author = "tommitytom", | ||
uniqueId = "2wvF", | ||
authorId = "tmtt", | ||
url = "https://tommitytom.co.uk", | ||
email = "[email protected]", | ||
copyright = "Copyright 2020 Tom Yaxley" | ||
copyright = "Copyright 2021 Tom Yaxley" | ||
}, | ||
config = { | ||
default = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
if "%RETROPLUG_VERSION%"=="" exit /b 1 | ||
|
||
echo Deploying RetroPlug "%RETROPLUG_VERSION%" | ||
|
||
mkdir build\deploy | ||
|
||
premake5 vs2019 | ||
msbuild build/vs2019/ScriptCompiler.vcxproj /property:Configuration=Release /property:Platform=x64 /m | ||
build\vs2019\bin\x64\Release\ScriptCompiler.exe src\compiler.config.lua | ||
premake5 vs2019 | ||
|
||
msbuild build/vs2019/RetroPlug.sln /property:Configuration=Release /property:Platform=x64 /m | ||
|
||
copy build\vs2019\bin\x64\Release\RetroPlug_app_x64.exe build\deploy\RetroPlug-%RETROPLUG_VERSION%.exe | ||
copy build\vs2019\bin\x64\Release\RetroPlug_vst2_x64.dll "build\deploy\RetroPlug %RETROPLUG_VERSION% (64bit).dll" | ||
|
||
cd build\deploy | ||
7z a RetroPlug_standalone-win64-%RETROPLUG_VERSION%.zip RetroPlug-%RETROPLUG_VERSION%.exe | ||
7z a RetroPlug_vst2-win64-%RETROPLUG_VERSION%.zip "RetroPlug %RETROPLUG_VERSION% (64bit).dll" | ||
|
||
cd ..\.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.