Skip to content

Commit 6796732

Browse files
committed
Build with NVSE folder structure
1 parent 1f76387 commit 6796732

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

‎.github/workflows/msbuild.yml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,15 @@ jobs:
3535

3636
- name: Package Artifacts
3737
run: |
38-
mkdir -p artifacts
39-
Compress-Archive -Path SHOWOFF-NVSE\Release\ShowOffNVSE.dll, SHOWOFF-NVSE\Release\ShowOffNVSE.pdb -DestinationPath artifacts\ShowOffNVSE-Release-${{ env.artifact_timestamp }}.zip
40-
Compress-Archive -Path SHOWOFF-NVSE\Debug\ShowOffNVSE.dll, SHOWOFF-NVSE\Debug\ShowOffNVSE.pdb -DestinationPath artifacts\ShowOffNVSE-Debug-${{ env.artifact_timestamp }}.zip
38+
$releaseDir = "SHOWOFF-NVSE\Release"
39+
$debugDir = "SHOWOFF-NVSE\Debug"
40+
New-Item -ItemType Directory -Name artifacts -Force | Out-Null
41+
New-Item -ItemType Directory -Name "nvse\plugins" -path $releaseDir -Force | Out-Null
42+
New-Item -ItemType Directory -Name "nvse\plugins" -path $debugDir -Force | Out-Null
43+
Copy-Item -Path "$releaseDir\ShowOffNVSE.dll", "$releaseDir\ShowOffNVSE.pdb" -Destination "$releaseDir\nvse\plugins"
44+
Copy-Item -Path "$debugDir\ShowOffNVSE.dll", "$debugDir\ShowOffNVSE.pdb" -Destination "$debugDir\nvse\plugins"
45+
Compress-Archive -Path "$releaseDir\nvse" -DestinationPath "artifacts\ShowOffNVSE-Release-${{ env.artifact_timestamp }}.zip"
46+
Compress-Archive -Path "$debugDir\nvse" -DestinationPath "artifacts\ShowOffNVSE-Debug-${{ env.artifact_timestamp }}.zip"
4147
shell: pwsh
4248

4349
- name: Publish Zipped Artifacts

‎.github/workflows/testBuilds.yml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,15 @@ jobs:
3535

3636
- name: Package Artifacts
3737
run: |
38-
mkdir -p artifacts
39-
Compress-Archive -Path SHOWOFF-NVSE\Release\ShowOffNVSE.dll, SHOWOFF-NVSE\Release\ShowOffNVSE.pdb -DestinationPath artifacts\ShowOffNVSE-Release-${{ env.artifact_timestamp }}.zip
40-
Compress-Archive -Path SHOWOFF-NVSE\Debug\ShowOffNVSE.dll, SHOWOFF-NVSE\Debug\ShowOffNVSE.pdb -DestinationPath artifacts\ShowOffNVSE-Debug-${{ env.artifact_timestamp }}.zip
38+
$releaseDir = "SHOWOFF-NVSE\Release"
39+
$debugDir = "SHOWOFF-NVSE\Debug"
40+
New-Item -ItemType Directory -Name artifacts -Force | Out-Null
41+
New-Item -ItemType Directory -Name "nvse\plugins" -path $releaseDir -Force | Out-Null
42+
New-Item -ItemType Directory -Name "nvse\plugins" -path $debugDir -Force | Out-Null
43+
Copy-Item -Path "$releaseDir\ShowOffNVSE.dll", "$releaseDir\ShowOffNVSE.pdb" -Destination "$releaseDir\nvse\plugins"
44+
Copy-Item -Path "$debugDir\ShowOffNVSE.dll", "$debugDir\ShowOffNVSE.pdb" -Destination "$debugDir\nvse\plugins"
45+
Compress-Archive -Path "$releaseDir\nvse" -DestinationPath "artifacts\ShowOffNVSE-Release-${{ env.artifact_timestamp }}.zip"
46+
Compress-Archive -Path "$debugDir\nvse" -DestinationPath "artifacts\ShowOffNVSE-Debug-${{ env.artifact_timestamp }}.zip"
4147
shell: pwsh
4248

4349
- name: Publish Zipped Artifacts

0 commit comments

Comments
 (0)