forked from a08381/Dalamud.SkipCutscene
-
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.
- Loading branch information
Showing
9 changed files
with
1,526 additions
and
189 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,4 @@ | ||
[*.cs] | ||
|
||
# CA1416: 验证平台兼容性 | ||
dotnet_diagnostic.CA1416.severity = silent |
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 |
---|---|---|
|
@@ -41,6 +41,7 @@ jobs: | |
Remove-Item -Path .\SkipCutscene\bin\Release\net5.0-windows\SkipCutscene_Secure -Force -Recurse | ||
Remove-Item -Path .\SkipCutscene\bin\Release\net5.0-windows\SkipCutscene -Force -Recurse | ||
Remove-Item -Path .\SkipCutscene\bin\Release\net5.0-windows\SkipCutscene.deps.json -Force -Recurse | ||
Remove-Item -Path .\SkipCutscene\bin\Release\net5.0-windows\ref -Force -Recurse | ||
mkdir -Path .\SkipCutscene\bin\Package\ | ||
- name: Package | ||
uses: papeloto/action-zip@v1 | ||
|
@@ -61,3 +62,33 @@ jobs: | |
with: | ||
name: Package | ||
path: ${{ github.workspace }}\SkipCutscene\bin\Package\ | ||
- name: Checkout dist | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: dist | ||
path: dist | ||
- name: Upload dist | ||
continue-on-error: false | ||
run: | | ||
cd "$Env:GITHUB_WORKSPACE" | ||
$content = Get-Content ".\dist\repo.json" | ||
$repo = ConvertFrom-Json $content | ||
$version = '"AssemblyVersion": "9.9.9.9"' | ||
$plugin = Get-Content ".\SkipCutscene\bin\Package\SkipCutscene.json" | ConvertFrom-Json | ||
$old_version = $version -replace '9.9.9.9',$repo.AssemblyVersion | ||
$new_version = $version -replace '9.9.9.9',$plugin.AssemblyVersion | ||
$content = $content -replace $old_version,$new_version | ||
Set-Content -Path ".\dist\repo.json" -Value $content | ||
Copy-Item -Path .\SkipCutscene\bin\Package\latest.zip -Destination .\dist\ -Force | ||
cd dist | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git commit -m "Regenerate PluginMaster" | ||
- name: Push dist | ||
continue-on-error: false | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: dist | ||
directory: dist |
Binary file not shown.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Dalamud.Configuration; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Plugins.a08381.SkipCutscene | ||
{ | ||
class Config : IPluginConfiguration | ||
{ | ||
|
||
public int Version { get; set; } | ||
|
||
public bool IsEnabled { get; set; } | ||
} | ||
} |
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