-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
dc49ea0
commit 968dde5
Showing
6 changed files
with
35 additions
and
136 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
build-win-plugin: | ||
build-solo-mode: | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
|
@@ -17,19 +17,7 @@ jobs: | |
- uses: actions-rs/[email protected] | ||
with: | ||
command: build | ||
args: --manifest-path rust/Cargo.toml --release | ||
|
||
- uses: actions-rs/[email protected] | ||
with: | ||
command: build | ||
args: --manifest-path solo-mode-service/Cargo.toml --release | ||
|
||
- name: Temporary store plugin | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: com.dim.streamdeck.exe | ||
path: ./rust/target/release/plugin.exe | ||
retention-days: 10 | ||
args: --manifest-path solo-mode/Cargo.toml --release | ||
|
||
- name: Temporary store install-sd-solo-enabler.exe | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -51,30 +39,3 @@ jobs: | |
name: service | ||
path: ./solo-mode-service/target/release/sd-solo-enabler.exe | ||
retention-days: 10 | ||
|
||
build-mac-plugin: | ||
runs-on: macos-latest | ||
defaults: | ||
run: | ||
working-directory: ./rust/ | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
|
||
- uses: actions-rs/[email protected] | ||
with: | ||
command: build | ||
args: --manifest-path rust/Cargo.toml --release | ||
|
||
- name: chmod +x | ||
run: chmod +x ./target/release/plugin | ||
|
||
- name: Temporary store plugin | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: com.dim.streamdeck | ||
path: ./rust/target/release/plugin | ||
retention-days: 10 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,59 +4,42 @@ on: | |
|
||
jobs: | ||
package-plugin: | ||
runs-on: windows-latest | ||
runs-on: mac-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: 7 | ||
run_install: false | ||
version: 8 | ||
run_install: true | ||
|
||
- name: Build property inspector | ||
working-directory: ./property-inspector/ | ||
run: pnpm install && pnpm build | ||
|
||
- uses: suisei-cn/[email protected] | ||
id: distribution_tool | ||
name: Download Elgato Distribution Tool | ||
with: | ||
url: "https://developer.elgato.com/documentation/stream-deck/distributiontool/DistributionToolWindows.zip" | ||
target: . | ||
|
||
- name: Extract DistributionTool.exe | ||
run: 7z x "${{ steps.distribution_tool.outputs.filename }}" | ||
run: pnpm build | ||
|
||
- name: Download artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
github_token: ${{secrets.SECRET_TOKEN}} | ||
workflow: build-plugin.yaml | ||
|
||
- name: Extract Version | ||
id: plugin | ||
uses: colathro/[email protected] | ||
with: | ||
file: "./rust/Cargo.toml" | ||
|
||
- name: Prepare plugin directory | ||
run: | | ||
md plugin/solo-mode | ||
move com.dim.streamdeck.exe/plugin.exe plugin/com.dim.streamdeck.exe | ||
move service-installer/install-sd-solo-enabler.exe plugin/solo-mode/install-sd-solo-enabler.exe | ||
move service-remover/remove-sd-solo-enabler.exe plugin/solo-mode/remove-sd-solo-enabler.exe | ||
move service/sd-solo-enabler.exe plugin/solo-mode/sd-solo-enabler.exe | ||
move com.dim.streamdeck/plugin plugin/com.dim.streamdeck | ||
ren plugin com.dim.streamdeck.sdPlugin | ||
- name: Package plugin | ||
run: ./DistributionTool.exe -b -i com.dim.streamdeck.sdPlugin -o . | ||
mkdir -p plugin/com.dim.streamdeck.sdPlugin/solo-mode | ||
mv service-installer/install-sd-solo-enabler.exe plugin/com.dim.streamdeck.sdPlugin/solo-mode/ | ||
mv service-remover/remove-sd-solo-enabler.exe plugin/com.dim.streamdeck.sdPlugin/solo-mode/ | ||
mv service/sd-solo-enabler.exe plugin/com.dim.streamdeck.sdPlugin/solo-mode/ | ||
- name: Build plugin | ||
working-directory: ./plugin | ||
run: pnpm build | ||
|
||
- name: Publish package | ||
uses: marvinpinto/action-automatic-releases@latest | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.