Skip to content

Commit

Permalink
upgrade packages, fix checkpoint action
Browse files Browse the repository at this point in the history
  • Loading branch information
fcannizzaro committed Dec 25, 2024
1 parent e9247cf commit c2c2eb7
Show file tree
Hide file tree
Showing 37 changed files with 4,083 additions and 3,750 deletions.
141 changes: 70 additions & 71 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
@@ -1,72 +1,71 @@
name: publish-package
on:
workflow_dispatch:

permissions:
contents: write

jobs:
release-plugin:
runs-on: macos-latest
env:
PLUGIN_VERSION:
steps:
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Extract version
id: version
working-directory: ./plugin
run: echo "PLUGIN_VERSION=$(jq .Version com.dim.streamdeck.sdPlugin/manifest.json -r)" | rev | cut -c3- | rev >> $GITHUB_ENV

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 9.5
run_install: true

# - name: Download rust artifacts
# uses: dawidd6/action-download-artifact@v2
# with:
# github_token: ${{secrets.GITHUB_TOKEN}}
# workflow: build-rust-packages.yaml

- name: Prepare plugin directory
run: |
mkdir -p plugin/com.dim.streamdeck.sdPlugin/solo-mode
mkdir -p plugin/com.dim.streamdeck.sdPlugin/macro
wget https://github.com/dim-stream-deck/prebuilt-binaries/raw/refs/heads/main/prebuilt/install-sd-solo-mode.exe -P plugin/com.dim.streamdeck.sdPlugin/solo-mode/
wget https://github.com/dim-stream-deck/prebuilt-binaries/raw/refs/heads/main/prebuilt/remove-sd-solo-mode.exe -P plugin/com.dim.streamdeck.sdPlugin/solo-mode/
wget https://github.com/dim-stream-deck/prebuilt-binaries/raw/refs/heads/main/prebuilt/sd-solo-mode.exe -P plugin/com.dim.streamdeck.sdPlugin/solo-mode/
wget https://github.com/dim-stream-deck/prebuilt-binaries/raw/refs/heads/main/prebuilt/macro.exe -P plugin/com.dim.streamdeck.sdPlugin/macro/
- name: Build
working-directory: .
run: pnpm build
env:
VITE_DISCORD: ${{secrets.VITE_DISCORD}}
VITE_PATREON: ${{secrets.VITE_PATREON}}
VITE_AXIOM_DATASET: ${{secrets.VITE_AXIOM_DATASET}}
VITE_AXIOM_TOKEN: ${{secrets.VITE_AXIOM_TOKEN}}
VITE_CHECKPOINTS_GIST: ${{secrets.VITE_CHECKPOINTS_GIST}}
VITE_CHECKPOINTS: ${{secrets.VITE_CHECKPOINTS}}
CHECKPOINT_API: ${{secrets.CHECKPOINT_API}}
AXIOM_DATASET: ${{secrets.VITE_AXIOM_DATASET}}
AXIOM_TOKEN: ${{secrets.VITE_AXIOM_TOKEN}}

- name: Publish package
uses: ncipollo/release-action@v1.13.0
with:
name: "${{ env.PLUGIN_VERSION }}"
prerelease: false
makeLatest: true
allowUpdates: true
bodyFile: "./changelogs/${{ env.PLUGIN_VERSION }}.md"
tag: "${{ env.PLUGIN_VERSION }}"
token: "${{ secrets.GITHUB_TOKEN }}"
name: publish-package
on:
workflow_dispatch:

permissions:
contents: write

jobs:
release-plugin:
runs-on: macos-latest
env:
PLUGIN_VERSION:
steps:
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Extract version
id: version
working-directory: ./plugin
run: echo "PLUGIN_VERSION=$(jq .Version com.dim.streamdeck.sdPlugin/manifest.json -r)" | rev | cut -c3- | rev >> $GITHUB_ENV

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 9.5
run_install: true

# - name: Download rust artifacts
# uses: dawidd6/action-download-artifact@v2
# with:
# github_token: ${{secrets.GITHUB_TOKEN}}
# workflow: build-rust-packages.yaml

- name: Prepare plugin directory
run: |
mkdir -p plugin/com.dim.streamdeck.sdPlugin/solo-mode
mkdir -p plugin/com.dim.streamdeck.sdPlugin/macro
wget https://github.com/dim-stream-deck/prebuilt-binaries/raw/refs/heads/main/prebuilt/install-sd-solo-mode.exe -P plugin/com.dim.streamdeck.sdPlugin/solo-mode/
wget https://github.com/dim-stream-deck/prebuilt-binaries/raw/refs/heads/main/prebuilt/remove-sd-solo-mode.exe -P plugin/com.dim.streamdeck.sdPlugin/solo-mode/
wget https://github.com/dim-stream-deck/prebuilt-binaries/raw/refs/heads/main/prebuilt/sd-solo-mode.exe -P plugin/com.dim.streamdeck.sdPlugin/solo-mode/
wget https://github.com/dim-stream-deck/prebuilt-binaries/raw/refs/heads/main/prebuilt/macro.exe -P plugin/com.dim.streamdeck.sdPlugin/macro/
- name: Build
working-directory: .
run: pnpm build
env:
VITE_DISCORD: ${{secrets.VITE_DISCORD}}
VITE_PATREON: ${{secrets.VITE_PATREON}}
VITE_AXIOM_DATASET: ${{secrets.VITE_AXIOM_DATASET}}
VITE_AXIOM_TOKEN: ${{secrets.VITE_AXIOM_TOKEN}}
VITE_CHECKPOINTS: ${{secrets.VITE_CHECKPOINTS}}
CHECKPOINT_API: ${{secrets.CHECKPOINT_API}}
AXIOM_DATASET: ${{secrets.VITE_AXIOM_DATASET}}
AXIOM_TOKEN: ${{secrets.VITE_AXIOM_TOKEN}}

- name: Publish package
uses: ncipollo/release-action@v1.13.0
with:
name: "${{ env.PLUGIN_VERSION }}"
prerelease: false
makeLatest: true
allowUpdates: true
bodyFile: "./changelogs/${{ env.PLUGIN_VERSION }}.md"
tag: "${{ env.PLUGIN_VERSION }}"
token: "${{ secrets.GITHUB_TOKEN }}"
artifacts: "./plugin/com.dim.streamdeck.streamDeckPlugin"
33 changes: 17 additions & 16 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Plugin",
"type": "node",
"request": "attach",
"port": 9999,
"outFiles": ["${workspaceFolder}/plugin/bin/**/*.js"],
"resolveSourceMapLocations": ["${workspaceFolder}/plugin/**"]
}
]
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Plugin",
"type": "node",
"request": "attach",
"port": 9999,
"restart": true,
"outFiles": ["${workspaceFolder}/plugin/bin/**/*.js"],
"resolveSourceMapLocations": ["${workspaceFolder}/plugin/**"]
}
]
}
5 changes: 5 additions & 0 deletions changelogs/3.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

# Changelog

- fix checkpoint system
- upgrade streamdeck sdk
2 changes: 1 addition & 1 deletion plugin/com.dim.streamdeck.sdPlugin/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.elgato.com/streamdeck/plugins/manifest.json",
"Name": "DIM Stream Deck",
"Version": "3.1.0.0",
"Version": "3.2.0.0",
"Author": "fcannizzaro",
"URL": "https://dimstreamdeck.vercel.app",
"PropertyInspectorPath": "pi/index.html",
Expand Down
28 changes: 14 additions & 14 deletions plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@
"dev": "rollup -c -w --watch.onEnd=\"streamdeck restart com.dim.streamdeck\""
},
"devDependencies": {
"@elgato/cli": "^1.0.0",
"@rollup/plugin-commonjs": "^28.0.0",
"@elgato/cli": "^1.1.0",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@swc/core": "^1.7.28",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-replace": "^6.0.2",
"@swc/core": "^1.10.1",
"@tsconfig/node20": "^20.1.4",
"@types/ms": "^0.7.34",
"@types/node": "22.7.4",
"@types/ws": "^8.5.12",
"@types/node": "22.10.2",
"@types/ws": "^8.5.13",
"property-inspector": "workspace:*",
"rollup": "^4.23.0",
"rollup": "^4.29.1",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-swc3": "^0.11.2",
"typescript": "^5.6.2"
"rollup-plugin-swc3": "^0.12.1",
"typescript": "^5.7.2"
},
"dependencies": {
"@elgato/streamdeck": "^1.0.1",
"@elgato/streamdeck": "^1.2.1",
"@plugin/types": "workspace:*",
"canvaskit-wasm": "^0.39.1",
"cheerio": "1.0.0",
"clipboardy": "^4.0.0",
"dot-prop": "^9.0.0",
"lowdb": "^7.0.1",
"lru-cache": "^11.0.1",
"lru-cache": "^11.0.2",
"ms": "^2.1.3",
"remeda": "^2.14.0",
"remeda": "^2.19.0",
"ws": "^8.18.0",
"zod": "^3.23.8"
"zod": "^3.24.1"
},
"packageManager": "pnpm@9.6.0+sha256.dae0f7e822c56b20979bb5965e3b73b8bdabb6b8b8ef121da6d857508599ca35"
}
Loading

0 comments on commit c2c2eb7

Please sign in to comment.