Skip to content

Commit

Permalink
v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicollasricas committed Apr 16, 2021
1 parent 661d62e commit d9013e0
Show file tree
Hide file tree
Showing 51 changed files with 829 additions and 348 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
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']
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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.
89 changes: 89 additions & 0 deletions .github/workflows/ci.yml
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/setup-nuget@v1.0.5

- 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/markdown-to-html@v1.2
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/sendgrid-mail-action@v1.1
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
47 changes: 47 additions & 0 deletions .github/workflows/tag-changelog-config.js
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}`;
},
};
45 changes: 35 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,24 @@
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Mono auto generated files
mono_crash.*

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/

# Visual Studio 2015/2017 cache/options directory
.vs/
Expand All @@ -39,9 +44,10 @@ Generated\ Files/
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml

# Build Results of an ATL Project
[Dd]ebugPS/
Expand All @@ -56,6 +62,9 @@ project.lock.json
project.fragment.lock.json
artifacts/

# ASP.NET Scaffolding
ScaffoldingReadMe.txt

# StyleCop
StyleCopReport.xml

Expand Down Expand Up @@ -122,9 +131,6 @@ _ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

Expand All @@ -135,6 +141,11 @@ _TeamCity*
.axoCover/*
!.axoCover/settings.json

# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info

# Visual Studio code coverage results
*.coverage
*.coveragexml
Expand Down Expand Up @@ -182,6 +193,8 @@ PublishScripts/

# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
Expand All @@ -206,6 +219,8 @@ BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload

# Visual Studio cache files
# files ending in .cache can be ignored
Expand Down Expand Up @@ -255,7 +270,9 @@ ServiceFabricBackup/
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- Backup*.rdl
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl

# Microsoft Fakes
FakesAssemblies/
Expand Down Expand Up @@ -291,10 +308,6 @@ paket-files/
# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush personal settings
.cr/personal

Expand Down Expand Up @@ -337,4 +350,16 @@ ASALocalRun/
.localhistory/

# BeatPulse healthcheck temp database
healthchecksdb
healthchecksdb

# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/

# Fody - auto-generated XML schema
FodyWeavers.xsd

com.nicollasr.streamdeckunity.streamDeckPlugin
com.nicollasr.streamdeckunity.mac.streamDeckPlugin
16 changes: 0 additions & 16 deletions CHANGELOG.md
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Nicollas R.
Copyright (c) 2021 Nicollas R.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 13 additions & 0 deletions PostBuildDebug.ps1
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"
17 changes: 17 additions & 0 deletions PostPublishRelease.ps1
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
Loading

0 comments on commit d9013e0

Please sign in to comment.