Skip to content

Commit

Permalink
Support OBS 31
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Oct 20, 2024
1 parent 1956afc commit 30cde13
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 449 deletions.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BasedOnStyle: InheritParentConfig
ColumnLimit: 132
20 changes: 1 addition & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,20 +293,6 @@ jobs:
with:
name: 'installer-files'
path: .
- name: Create Code Signing Certificate
if: success() && github.event_name != 'pull_request'
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.CERTIFICATE }}'
certutil -decode certificate\certificate.txt certificate\certificate.pfx
- name: Code Sign 32
if: success() && github.event_name != 'pull_request'
run: |
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.20348.0/x86/signtool.exe' sign /f certificate\certificate.pfx /p '${{ secrets.CERTIFICATE_PASS }}' /t http://timestamp.comodoca.com/authenticode .\package\obs-plugins\32bit\${{ env.PLUGIN_NAME }}.dll
- name: Code Sign 64
if: success() && github.event_name != 'pull_request'
run: |
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.20348.0/x64/signtool.exe' sign /f certificate\certificate.pfx /p '${{ secrets.CERTIFICATE_PASS }}' /t http://timestamp.comodoca.com/authenticode .\package\obs-plugins\64bit\${{ env.PLUGIN_NAME }}.dll
- name: Publish zip
if: success()
uses: actions/upload-artifact@v3.1.1
Expand All @@ -320,10 +306,6 @@ jobs:
- name: "Package Installer (Compile)"
run: |
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /Qp ".\installer.iss"
- name: Code Sign Installer
if: success() && github.event_name != 'pull_request'
run: |
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.20348.0/x64/signtool.exe' sign /f certificate\certificate.pfx /p '${{ secrets.CERTIFICATE_PASS }}' /t http://timestamp.comodoca.com/authenticode .\package\${{ env.PLUGIN_NAME }}-installer.exe
- name: Publish installer
if: success()
uses: actions/upload-artifact@v3.1.1
Expand All @@ -333,4 +315,4 @@ jobs:
- name: Remove temp artifacts
uses: geekyeggo/delete-artifact@v2.0.0
with:
name: "${{ env.FILE_NAME_X86 }}\n${{ env.FILE_NAME_X64 }}\ninstaller-files"
name: "${{ env.FILE_NAME_X86 }}\n${{ env.FILE_NAME_X64 }}"
20 changes: 12 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ else()
cmake_minimum_required(VERSION 3.18)
endif()

project(scene-collection-manager VERSION 0.1.1)
project(scene-collection-manager VERSION 0.1.2)
set(PROJECT_FULL_NAME "Scene Collection Manager")

# Set new UUIDs when you start to create a new plugin.
Expand All @@ -29,12 +29,18 @@ if(BUILD_OUT_OF_TREE)
find_package(libobs REQUIRED)
find_package(obs-frontend-api REQUIRED)
include(cmake/ObsPluginHelpers.cmake)
find_qt(COMPONENTS Widgets COMPONENTS_LINUX Gui)
set(OBS_FRONTEND_API_NAME "obs-frontend-api")
else()
set(OBS_FRONTEND_API_NAME "frontend-api")
endif()

if(OS_WINDOWS)
else()
if(OBS_VERSION VERSION_GREATER_EQUAL 30.1.0)
find_package(Qt6 COMPONENTS Core Widgets)
else()
find_qt(COMPONENTS Widgets COMPONENTS_LINUX Gui)
endif()
set(OBS_FRONTEND_API_NAME "frontend-api")
endif()

if(OS_WINDOWS)
get_filename_component(ISS_FILES_DIR "${CMAKE_BINARY_DIR}\\..\\package" ABSOLUTE)
file(TO_NATIVE_PATH "${ISS_FILES_DIR}" ISS_FILES_DIR)
get_filename_component(ISS_PACKAGE_DIR "${CMAKE_PACKAGE_PREFIX}\\.." ABSOLUTE)
Expand All @@ -56,8 +62,6 @@ elseif(OS_MACOS)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall)
endif()

# lines if you want add Qt UI in your plugin
find_qt(COMPONENTS Widgets COMPONENTS_LINUX Gui)
set_target_properties(${PROJECT_NAME} PROPERTIES AUTOMOC ON AUTOUIC ON AUTORCC ON)

target_link_libraries(${PROJECT_NAME}
Expand Down
24 changes: 24 additions & 0 deletions SceneCollectionManager.ui
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@
<property name="themeID" stdset="0">
<string notr="true">addIconSmall</string>
</property>
<property name="class" stdset="0">
<string notr="true">icon-plus</string>
</property>
</action>
<action name="actionRemoveSceneCollection">
<property name="icon">
Expand All @@ -121,6 +124,9 @@
<property name="themeID" stdset="0">
<string notr="true">removeIconSmall</string>
</property>
<property name="class" stdset="0">
<string notr="true">icon-minus</string>
</property>
</action>
<action name="actionAddBackup">
<property name="icon">
Expand All @@ -133,6 +139,9 @@
<property name="themeID" stdset="0">
<string notr="true">addIconSmall</string>
</property>
<property name="class" stdset="0">
<string notr="true">icon-plus</string>
</property>
</action>
<action name="actionRemoveBackup">
<property name="icon">
Expand All @@ -145,6 +154,9 @@
<property name="themeID" stdset="0">
<string notr="true">removeIconSmall</string>
</property>
<property name="class" stdset="0">
<string notr="true">icon-minus</string>
</property>
</action>
<action name="actionConfigSceneCollection">
<property name="icon">
Expand All @@ -157,6 +169,9 @@
<property name="themeID" stdset="0">
<string notr="true">propertiesIconSmall</string>
</property>
<property name="class" stdset="0">
<string notr="true">icon-gear</string>
</property>
</action>
<action name="actionConfigBackup">
<property name="icon">
Expand All @@ -169,6 +184,9 @@
<property name="themeID" stdset="0">
<string notr="true">propertiesIconSmall</string>
</property>
<property name="class" stdset="0">
<string notr="true">icon-gear</string>
</property>
</action>
<action name="actionSwitchBackup">
<property name="icon">
Expand All @@ -181,6 +199,9 @@
<property name="themeID" stdset="0">
<string notr="true">playIcon</string>
</property>
<property name="class" stdset="0">
<string notr="true">icon-media-play</string>
</property>
</action>
<action name="actionSwitchSceneCollection">
<property name="icon">
Expand All @@ -193,6 +214,9 @@
<property name="themeID" stdset="0">
<string notr="true">playIcon</string>
</property>
<property name="class" stdset="0">
<string notr="true">icon-media-play</string>
</property>
</action>
</widget>
<resources/>
Expand Down
2 changes: 1 addition & 1 deletion buildspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@
}
},
"name": "scene-collection-manager",
"version": "0.1.1"
"version": "0.1.2"
}
Loading

0 comments on commit 30cde13

Please sign in to comment.