Skip to content

Commit ce9e8ae

Browse files
committed
Windows+Macos support
1 parent 9ba813b commit ce9e8ae

3 files changed

Lines changed: 52 additions & 38 deletions

File tree

.github/workflows/package.yml

Lines changed: 43 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,48 @@
11
name: Package Plugin
22

33
on:
4-
push:
5-
branches: ["main"]
6-
pull_request:
7-
branches: ["main"]
8-
workflow_dispatch:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
workflow_dispatch:
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- uses: actions/checkout@v4
16-
17-
- name: Setup .NET
18-
uses: actions/setup-dotnet@v4
19-
with:
20-
dotnet-version: 8.0.x
21-
22-
- name: Install logiplugintool
23-
run: dotnet tool install --global logiplugintool
24-
25-
- name: Build
26-
run: dotnet build -c Release
27-
28-
- name: Package Plugin
29-
run: logiplugintool pack ./bin/Release ./HapticWeb.lplug4
30-
31-
- name: Upload Plugin Artifact
32-
uses: actions/upload-artifact@v4
33-
with:
34-
name: HapticWeb-Plugin
35-
path: ./HapticWeb.lplug4
11+
build:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 8.0.x
21+
22+
- name: Install logiplugintool
23+
run: dotnet tool install --global logiplugintool
24+
25+
- name: Extract PluginApi.dll
26+
shell: pwsh
27+
run: |
28+
New-Item -ItemType Directory -Force -Path ./lib
29+
$pluginApi = Get-ChildItem -Path $env:USERPROFILE\.dotnet\tools\.store -Filter PluginApi.dll -Recurse | Select-Object -First 1
30+
if ($pluginApi) {
31+
Copy-Item -Path $pluginApi.FullName -Destination ./lib/PluginApi.dll
32+
Write-Host "Copied PluginApi.dll to ./lib/"
33+
} else {
34+
Write-Error "PluginApi.dll not found in dotnet tools store."
35+
exit 1
36+
}
37+
38+
- name: Build
39+
run: dotnet build -c Release
40+
41+
- name: Package Plugin
42+
run: logiplugintool pack ./bin/Release ./HapticWeb.lplug4
43+
44+
- name: Upload Plugin Artifact
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: HapticWeb-Plugin
48+
path: ./HapticWeb.lplug4

src/HapticWebPlugin.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626

2727
<ItemGroup>
2828
<Reference Include="PluginApi">
29-
<HintPath>$(PluginApiDir)PluginApi.dll</HintPath>
29+
<HintPath Condition="Exists('$(PluginApiDir)PluginApi.dll')">$(PluginApiDir)PluginApi.dll</HintPath>
30+
<HintPath Condition="!Exists('$(PluginApiDir)PluginApi.dll')">..\lib\PluginApi.dll</HintPath>
3031
</Reference>
3132
</ItemGroup>
3233

@@ -44,7 +45,7 @@
4445
<Message Text="✅ Package files copied to $(OutputPath)..\" Importance="High" />
4546
</Target>
4647

47-
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
48+
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CI)' == ''">
4849
<Exec Condition="$(OS) == 'Windows_NT'" Command="echo $(BaseOutputPath)$(Configuration)\ &gt; &quot;$(PluginDir)$(ProjectName).link&quot;" />
4950
<Exec Condition="$(OS) != 'Windows_NT'" Command="echo $(BaseOutputPath)$(Configuration)\ &gt; $(PluginDir)$(ProjectName).link" />
5051
<Message Text="🔨 Created plugin link at: $(PluginDir)$(ProjectName).link" Importance="High" />

src/package/metadata/LoupedeckPackage.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type: plugin4
99
name: HapticWeb
1010

1111
# Plugin name that is shown to the user.
12-
displayName: HapticWeb
12+
displayName: Haptic Web Plugin
1313

1414
# Short description of the plugin.
1515
description: Add a short description of the plugin here.
@@ -21,18 +21,18 @@ pluginFileName: HapticWebPlugin.dll
2121
version: 1.1
2222

2323
# Author of the plugin. The author can be a company or an individual developer.
24-
author: fallstop
24+
author: Jasper M-W
2525

2626
# Copyright information.
27-
copyright: Copyright © 2025 fallstop. All rights reserved.
27+
copyright: Copyright © 2026 Jasper M-W. All rights reserved.
2828

2929
# ==================================================================================================
3030
# PLUGIN PROPERTIES
3131
# ==================================================================================================
3232

3333
# Location of plugin files on Windows (relative to the plugin base directory).
3434
# This parameter is required to support Windows.
35-
#pluginFolderWin: bin
35+
pluginFolderWin: bin
3636

3737
# Location of plugin files on macOS (relative to the plugin base directory).
3838
# This parameter is required to support Mac.
@@ -78,7 +78,7 @@ licenseUrl: https://opensource.org/licenses/MIT
7878
# URL of the support page where the users can send improvement suggestions and report bugs.
7979
# The URL is shown in Loupedeck Marketplace. The page can be for example a GitHub issues page.
8080
# NOTE: This setting is recommended when publishing the plugin in Loupedeck Marketplace.
81-
#supportPageUrl: https://github.com/myusername/myplugin/issues
81+
supportPageUrl: https://github.com/Fallstop/HapticWebPlugin/issues
8282

8383
# URL of the plugin homepage. The URL is shown in Loupedeck Marketplace.
84-
#homePageUrl: https://github.com/myusername/myplugin
84+
homePageUrl: https://haptics.jmw.nz

0 commit comments

Comments
 (0)