diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 7b16d7a..db1d965 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -189,20 +189,28 @@ jobs: run: cmake --build build --config Release - name: Install & CPack + id: cpack_step # Add an ID to this step working-directory: build shell: pwsh run: | cmake --install . cpack . + # Find the generated files and set them as outputs + $msiFile = Get-ChildItem -Path "artifacts/*.msi" | Select-Object -First 1 + $zipFile = Get-ChildItem -Path "artifacts/*.zip" | Select-Object -First 1 + echo "msi_name=$($msiFile.Name)" >> $env:GITHUB_OUTPUT + echo "msi_path=$($msiFile.FullName)" >> $env:GITHUB_OUTPUT + echo "zip_name=$($zipFile.Name)" >> $env:GITHUB_OUTPUT + echo "zip_path=$($zipFile.FullName)" >> $env:GITHUB_OUTPUT - name: Upload Installer Artifact uses: actions/upload-artifact@v4 with: - name: iDescriptor-Windows-Installer - path: build/artifacts/*.msi + name: ${{ steps.cpack_step.outputs.msi_name }} + path: ${{ steps.cpack_step.outputs.msi_path }} - name: Upload Portable ZIP Artifact uses: actions/upload-artifact@v4 with: - name: iDescriptor-Windows-Portable - path: build/artifacts/*.zip + name: ${{ steps.cpack_step.outputs.zip_name }} + path: ${{ steps.cpack_step.outputs.zip_path }} diff --git a/src/main.cpp b/src/main.cpp index bb8199a..9f14bc7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -44,8 +44,8 @@ int main(int argc, char *argv[]) qputenv("GST_PLUGIN_PATH", gstPluginPath.toUtf8()); qDebug() << "GST_PLUGIN_PATH=" << gstPluginPath; - qputenv("GST_REGISTRY_REUSE_PLUGIN_SCANNER", "yes"); - qDebug() << "GST_REGISTRY_REUSE_PLUGIN_SCANNER=yes"; + qputenv("GST_REGISTRY_REUSE_PLUGIN_SCANNER", "no"); + qDebug() << "GST_REGISTRY_REUSE_PLUGIN_SCANNER=no"; qputenv("GST_PLUGIN_SYSTEM_PATH", gstPluginPath.toUtf8()); qDebug() << "GST_PLUGIN_SYSTEM_PATH=" << gstPluginPath; qputenv("GST_DEBUG", "GST_PLUGIN_LOADING:5");