-
Notifications
You must be signed in to change notification settings - Fork 5
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
2,513 changed files
with
7,627 additions
and
231 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,53 +1,61 @@ | ||
name: Win32Sample GitHub Release | ||
name: GitHub Release | ||
on: | ||
push: | ||
branches: [ ci ] | ||
tags: | ||
- 'v*' | ||
- 'v*.*' | ||
jobs: | ||
create_release: | ||
name: Create GitHub Release | ||
runs-on: windows-2019 | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Install 7Zip PowerShell Module | ||
shell: powershell | ||
run: Install-Module 7Zip4PowerShell -Force -Verbose | ||
- uses: actions/checkout@v2 | ||
|
||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
lfs: 'true' | ||
|
||
- name: Get the version | ||
uses: kzrnm/get-net-sdk-project-versions-action@v1 | ||
id: get-version | ||
with: | ||
proj-path: KHFM-VF-Patch/KHFM-VF-Patch.csproj | ||
|
||
- name: Build Binary | ||
shell: cmd | ||
run: call .\Build.cmd | ||
- name: Build Artifact | ||
run: call .\CI\Build.cmd | ||
|
||
- name: Create Artifact | ||
shell: cmd | ||
run: call .\ArtifactBuild.cmd | ||
run: call .\CI\CreateArtifact.cmd | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: KHFM-VF-Patch | ||
path: .\KHFM-VF-Patch\bin\x86\Release\net5.0-windows | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
Automated Release by GitHub Action CI | ||
draft: false | ||
tag_name: ${{ steps.get-version.outputs.version }} | ||
release_name: v${{ steps.get-version.outputs.version }} | ||
draft: true | ||
prerelease: true | ||
- name: Upload Release Asset (x64) | ||
id: upload-release-asset-x64 | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./SampleX64.ZIP | ||
asset_name: SampleX64.ZIP | ||
asset_content_type: application/zip | ||
- name: Upload Release Asset (x86) | ||
id: upload-release-asset-x86 | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./SampleX86.ZIP | ||
asset_name: SampleX86.ZIP | ||
asset_path: ./KHFM-VF-Patch/KHFM-VF-Patch.zip | ||
asset_name: KHFM-VF-Patch-${{ steps.get-version.outputs.version }}.zip | ||
asset_content_type: application/zip |
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,13 @@ | ||
@echo off | ||
|
||
pushd "%~dp0" | ||
cd ..\KHFM-VF-Patch | ||
|
||
"%programfiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\msbuild.exe" KHFM-VF-Patch.sln /t:Restore /p:Configuration=Release /p:Platform=x86 | ||
"%programfiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\msbuild.exe" KHFM-VF-Patch.sln /t:Build /p:Configuration=Release /p:Platform=x86 | ||
"%programfiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\msbuild.exe" KHFM-VF-Patch.sln /t:Rebuild /p:Configuration=Release /p:Platform=x86 | ||
|
||
:exit | ||
popd | ||
|
||
@echo on |
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,23 @@ | ||
@echo off | ||
|
||
pushd "%~dp0" | ||
cd ..\KHFM-VF-Patch | ||
|
||
@REM Create Patches directory | ||
powershell New-Item -Path "bin\x86\Release\net5.0-windows\Resources\Patches" -ItemType Directory | ||
|
||
@REM Zip all sub-patches in the proper directory with the proper extension | ||
powershell Compress-7Zip "Resources\Patches\KH1FM-Magic-EN" -ArchiveFileName "bin\x86\Release\net5.0-windows\Resources\Patches\KH1FM-Magic-EN.patch" -Format Zip | ||
powershell Compress-7Zip "Resources\Patches\KH1FM-Magic-FR" -ArchiveFileName "bin\x86\Release\net5.0-windows\Resources\Patches\KH1FM-Magic-FR.patch" -Format Zip | ||
powershell Compress-7Zip "Resources\Patches\KH1FM-Stranger" -ArchiveFileName "bin\x86\Release\net5.0-windows\Resources\Patches\KH1FM-Stranger.patch" -Format Zip | ||
powershell Compress-7Zip "Resources\Patches\KH1FM-Textures" -ArchiveFileName "bin\x86\Release\net5.0-windows\Resources\Patches\KH1FM-Textures.patch" -Format Zip | ||
powershell Compress-7Zip "Resources\Patches\KH1FM-Voices" -ArchiveFileName "bin\x86\Release\net5.0-windows\Resources\Patches\KH1FM-Voices.patch" -Format Zip | ||
powershell Compress-7Zip "Resources\Patches\KH1FM-Videos" -ArchiveFileName "bin\x86\Release\net5.0-windows\Resources\Patches\KH1FM-Videos.patch" -Format Zip | ||
|
||
@REM Zip all patch files to upload them for release | ||
powershell Compress-7Zip "bin\x86\Release\net5.0-windows" -ArchiveFileName "KHFM-VF-Patch.zip" -Format Zip | ||
|
||
:exit | ||
popd | ||
|
||
@echo on |
This file was deleted.
Oops, something went wrong.
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.