forked from TumblThreeApp/TumblThree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare repository to be built by appveyor
- Loading branch information
1 parent
82dbde5
commit 5f8fd50
Showing
4 changed files
with
56 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 1.0.8.{build} | ||
image: Visual Studio 2017 | ||
configuration: Release | ||
assembly_info: | ||
patch: true | ||
file: '**\SharedAssemblyInfo.cs' | ||
assembly_version: '{version}' | ||
assembly_file_version: '{version}' | ||
assembly_informational_version: '{version}' | ||
before_build: | ||
- ps: >- | ||
./scripts/appveyor-prebuild.ps1 | ||
nuget restore "src\TumblThree\TumblThree.sln" | ||
build: | ||
project: src\TumblThree\TumblThree.sln | ||
verbosity: normal | ||
after_build: | ||
- ps: ./scripts/appveyor-postbuild.ps1 | ||
artifacts: | ||
- path: artifacts/*.zip | ||
name: TumblThree |
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,32 @@ | ||
# Harvest Data | ||
$harvestPath = "$env:APPVEYOR_BUILD_FOLDER\src\TumblThree\TumblThree.Presentation\bin\Release" | ||
$fileVersion = (Get-Item "$harvestPath\TumblThree.exe").VersionInfo.ProductVersion | ||
|
||
# Artifacts Paths | ||
$artifactsPath = "$env:APPVEYOR_BUILD_FOLDER\artifacts" | ||
$applicationArtifactsPath = "$artifactsPath\Application\TumbleThree" | ||
$translationArtifactsPath = "$artifactsPath\Translations\TumbleThree" | ||
|
||
New-Item -ItemType Directory -Force -Path $applicationArtifactsPath | ||
New-Item -ItemType Directory -Force -Path $translationArtifactsPath | ||
|
||
# Copy in Application Artifacts | ||
Get-ChildItem -Path "$harvestPath\*" -Include *.exe,*.dll,*.config | Copy-Item -Destination $applicationArtifactsPath | ||
New-Item -ItemType Directory -Force -Path "$applicationArtifactsPath\en" | ||
Get-ChildItem -Path "$harvestPath\en\*" | Copy-Item -Destination "$applicationArtifactsPath\en" | ||
|
||
# Copy in Translation Artifacts | ||
$translationFolders = dir -Directory $harvestPath | ||
foreach ($tf in $translationFolders) { | ||
$tfTarget = "$translationArtifactsPath\$tf" | ||
New-Item -ItemType Directory -Force -Path "$tfTarget" | ||
Get-ChildItem -Path "$harvestPath\$tf\*" | Copy-Item -Destination "$tfTarget" | ||
} | ||
|
||
# Zip Application | ||
$applicationZipPath = "$artifactsPath\TumblThree-v$fileVersion-Application.zip" | ||
Compress-Archive -Path "$artifactsPath\Application\TumbleThree\" -DestinationPath "$applicationZipPath" | ||
|
||
# Zip Translations | ||
$translationZipPath = "$artifactsPath\TumblThree-v$fileVersion-Translations.zip" | ||
Compress-Archive -Path "$artifactsPath\Translations\TumbleThree\" -DestinationPath "$translationZipPath" |
Empty file.
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