-
-
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
1 parent
661d62e
commit d9013e0
Showing
51 changed files
with
829 additions
and
348 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,3 @@ | ||
ko_fi: nicollasricas | ||
patreon: nicollasricas | ||
custom: ['https://www.buymeacoffee.com/nicollasricas'] |
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,34 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "" | ||
labels: bug | ||
assignees: nicollasricas | ||
--- | ||
|
||
## Expected Behavior | ||
|
||
Please describe the behavior you are expecting | ||
|
||
## Actual Behavior | ||
|
||
What is the actual behavior? | ||
|
||
## Steps to Reproduce | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
## Specifications | ||
|
||
- Unity Version: | ||
- Platform (Windows or Mac): | ||
|
||
## Failure Logs | ||
|
||
> Windows: %appdata%/Elgato/StreamDeck/Plugins/com.nicollasr.streamdeckunity.sdPlugin/pluginlog.log | ||
> Mac: ~/Library/Application Support/com.elgato.StreamDeck/Plugins/com.nicollasr.streamdeckunity.mac.sdPlugin/pluginlog.log | ||
Please include any relevant log snippets or files here. |
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,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "" | ||
labels: enhancement | ||
assignees: nicollasricas | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,89 @@ | ||
name: CI | ||
|
||
env: | ||
RELEASE_MAIL_SUBJECT: Unity 3D - Plugin Update | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
buildAndRelease: | ||
runs-on: windows-latest | ||
outputs: | ||
changelog: "${{ steps.commitsChangeLog.outputs.changelog }}" | ||
steps: | ||
- uses: microsoft/setup-msbuild@v1 | ||
|
||
- uses: NuGet/[email protected] | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.x | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: dotnet publish -c Release -r win10-x64 --self-contained true | ||
|
||
- run: dotnet publish -c Release -r osx-x64 --self-contained true | ||
|
||
- uses: loopwerk/conventional-changelog-action@latest | ||
id: commitsChangeLog | ||
with: | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
config_file: .github/workflows/tag-changelog-config.js | ||
|
||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
body: ${{ steps.commitsChangeLog.outputs.changes }} | ||
draft: false | ||
prerelease: false | ||
fail_on_unmatched_files: true | ||
files: | | ||
com.nicollasr.streamdeckunity.streamDeckPlugin | ||
com.nicollasr.streamdeckunity.mac.streamDeckPlugin | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- uses: lifepal/[email protected] | ||
id: releaseMailBody | ||
with: | ||
text: | | ||
Hi, | ||
New plugin update. | ||
Downloads are available [here](https://github.com/nicollasricas/streamdeck-unity/releases/latest) for both platforms (Windows and Mac). | ||
Regards, | ||
Nicollas R. | ||
- uses: mmichailidis/[email protected] | ||
with: | ||
sendgrid-token: ${{ secrets.SENDGRID_TOKEN }} | ||
mail: ${{ secrets.STREAMDECK_SUPPORT_EMAIL }},${{ secrets.MY_EMAIL }} | ||
from: ${{ secrets.RELEASE_MAIL_FROM }} | ||
subject: ${{ env.RELEASE_MAIL_SUBJECT }} | ||
text: "${{ steps.releaseMailBody.outputs.html }}" | ||
individual: true | ||
pullRequestChangelog: | ||
runs-on: windows-latest | ||
needs: buildAndRelease | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: | | ||
(Get-Content CHANGELOG.md) -replace "\[Unreleased\]", "$&`n`n${{ needs.buildAndRelease.outputs.changelog }}" | Set-Content CHANGELOG.md | ||
- uses: peter-evans/create-pull-request@v3 | ||
with: | ||
base: master | ||
commit-message: Release ${{ github.ref }} CHANGELOG | ||
title: Update CHANGELOG | ||
branch: changelog | ||
delete-branch: true | ||
draft: false |
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,47 @@ | ||
module.exports = { | ||
types: [ | ||
{ types: ["feat", "feature"], label: "New Features" }, | ||
{ types: ["fix", "bugfix"], label: "Bugfixes" }, | ||
{ types: ["improvements", "enhancement"], label: "Improvements" }, | ||
{ types: ["perf"], label: "Performance Improvements" }, | ||
{ types: ["build", "ci"], label: "Build System" }, | ||
{ types: ["refactor"], label: "Refactors" }, | ||
{ types: ["doc", "docs"], label: "Documentation Changes" }, | ||
{ types: ["test", "tests"], label: "Tests" }, | ||
{ types: ["style"], label: "Code Style Changes" }, | ||
{ types: ["chore"], label: "Chores" }, | ||
{ types: ["other"], label: "Other Changes" }, | ||
], | ||
|
||
excludeTypes: ["other", "doc", "chore"], | ||
|
||
renderTypeSection: function (label, commits) { | ||
let text = `\n### ${label}\n`; | ||
|
||
commits.forEach((commit) => { | ||
const scope = commit.scope ? `**${commit.scope}:** ` : ""; | ||
text += `- ${scope}${commit.subject}\n`; | ||
}); | ||
|
||
return text; | ||
}, | ||
|
||
renderNotes: function (notes) { | ||
let text = `\n### BREAKING CHANGES\n`; | ||
|
||
notes.forEach((note) => { | ||
text += `- due to [${note.commit.sha.substr(0, 6)}](${ | ||
note.commit.url | ||
}): ${note.commit.subject}\n\n`; | ||
text += `${note.text}\n\n`; | ||
}); | ||
|
||
return text; | ||
}, | ||
|
||
renderChangelog: function (release, changes) { | ||
return `## [${release}] - ${new Date() | ||
.toISOString() | ||
.substr(0, 10)}\n${changes}`; | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [1.0.1] - 2020-09-04 | ||
|
||
### Changed | ||
|
||
- Fixed property inspector not saving values. | ||
|
||
|
||
## [1.0.0] - 2020-02-21 | ||
|
||
Initial release |
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,13 @@ | ||
param([string]$targetName, [string]$outputDir) | ||
|
||
$pluginPath = "$Env:APPDATA\Elgato\StreamDeck\Plugins\$targetName.sdPlugin" | ||
|
||
taskkill /f /t /im "StreamDeck.exe" | ||
|
||
taskkill /f /t /im "$targetName.exe" /fi "STATUS eq RUNNING | NOT RESPONDING" | ||
|
||
Remove-Item -Path "$pluginPath" -Force -Recurse | ||
|
||
Copy-Item -Path "$outputDir" -Destination "$pluginPath" -Force -Recurse -Container: $false -Exclude "*.pdb" | ||
|
||
Start-Process -FilePath "C:\Program Files\Elgato\StreamDeck\StreamDeck.exe" |
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 @@ | ||
param([string]$targetName, [string]$outputDir, [string]$runtimeIdentifier) | ||
|
||
$pluginName = "$targetName.sdPlugin" | ||
|
||
if($runtimeIdentifier -EQ "osx-x64") { | ||
$pluginName = $pluginName -Replace $targetName, "$targetName.mac" | ||
|
||
Remove-Item "$PSScriptRoot\$targetName.mac.streamDeckPlugin" -ErrorAction Ignore | ||
} else { | ||
Remove-Item "$PSScriptRoot\$targetName.streamDeckPlugin" -ErrorAction Ignore | ||
} | ||
|
||
Rename-Item "$($outputDir)publish" $pluginName | ||
|
||
. "$PSScriptRoot\tools\DistributionTool.exe" -b -i "$($outputDir)$pluginName" -o "$PSScriptRoot" | ||
|
||
Remove-Item "$($outputDir)$pluginName" -Force -Recurse |
Oops, something went wrong.