Skip to content

Commit 0cda544

Browse files
Merge pull request #345 from g-maxime/sign
Windows build scripts
2 parents 677e668 + 32c9071 commit 0cda544

9 files changed

+150
-161
lines changed

Project/MSVC2022/CLI/BWF_MetaEdit_CLI.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
<ProjectGuid>{8A1AE679-131A-493C-86CA-91179B0955A4}</ProjectGuid>
2323
<RootNamespace>BWF_MetaEdit</RootNamespace>
2424
<Keyword>Win32Proj</Keyword>
25-
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
2625
</PropertyGroup>
2726
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2827
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">

Release/Build_CLI_Windows.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Copyright (c) MediaArea.net SARL. All Rights Reserved.
2+
##
3+
## Use of this source code is governed by a BSD-style license that can
4+
## be found in the License.html file in the root of the source tree.
5+
##
6+
7+
Param([parameter(Mandatory=$true)][String]$arch)
8+
9+
$ErrorActionPreference = "Stop"
10+
11+
#-----------------------------------------------------------------------
12+
# Setup
13+
$release_directory = $PSScriptRoot
14+
$version = (Get-Content "${release_directory}\..\Project\version.txt" -Raw).Trim()
15+
16+
#-----------------------------------------------------------------------
17+
# Build
18+
Push-Location -Path "${release_directory}\..\Project\MSVC2022"
19+
MSBuild -p:"Configuration=Release;Platform=${arch}"
20+
Pop-Location

Release/Build_GUI_Windows.ps1

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Copyright (c) MediaArea.net SARL. All Rights Reserved.
2+
##
3+
## Use of this source code is governed by a BSD-style license that can
4+
## be found in the License.html file in the root of the source tree.
5+
##
6+
7+
Param([parameter(Mandatory=$true)][String]$arch)
8+
9+
$ErrorActionPreference = "Stop"
10+
11+
#-----------------------------------------------------------------------
12+
# Setup
13+
$release_directory = $PSScriptRoot
14+
$version = (Get-Content "${release_directory}\..\Project\version.txt" -Raw).Trim()
15+
16+
#-----------------------------------------------------------------------
17+
# Build
18+
Push-Location -Path "${release_directory}\..\Project\QtCreator"
19+
New-Item -Force -ItemType Directory "${arch}"
20+
Push-Location -Path "${arch}"
21+
qmake ..
22+
nmake
23+
Pop-Location
24+
Pop-Location

Release/Release_CLI_Windows.ps1

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## Copyright (c) MediaArea.net SARL. All Rights Reserved.
2+
##
3+
## Use of this source code is governed by a BSD-style license that can
4+
## be found in the License.html file in the root of the source tree.
5+
##
6+
7+
Param([parameter(Mandatory=$true)][String]$arch)
8+
9+
$ErrorActionPreference = "Stop"
10+
11+
#-----------------------------------------------------------------------
12+
# Setup
13+
$release_directory = Split-Path -Parent $MyInvocation.MyCommand.Path
14+
$version = (Get-Content "${release_directory}\..\Project\version.txt" -Raw).Trim()
15+
$arch_alt="${arch}"
16+
if ("${arch}" -eq "Win32" ) {
17+
$arch_alt="i386"
18+
}
19+
20+
#-----------------------------------------------------------------------
21+
# Cleanup
22+
$artifact = "${release_directory}\BWFMetaEdit_CLI_${version}_Windows_${arch_alt}"
23+
if (Test-Path "${artifact}") {
24+
Remove-Item -Force -Recurse "${artifact}"
25+
}
26+
27+
$artifact = "${release_directory}\BWFMetaEdit_CLI_${version}_Windows_${arch_alt}.zip"
28+
if (Test-Path "${artifact}") {
29+
Remove-Item -Force "${artifact}"
30+
}
31+
32+
#-----------------------------------------------------------------------
33+
# Package CLI
34+
Push-Location "${release_directory}"
35+
New-Item -Force -ItemType Directory -Path "BWFMetaEdit_CLI_${version}_Windows_${arch_alt}"
36+
Push-Location "BWFMetaEdit_CLI_${version}_Windows_${arch_alt}"
37+
### Copying: Exe ###
38+
Copy-Item -Force "..\..\Project\MSVC2022\CLI\${arch}\Release\bwfmetaedit.exe" .
39+
### Copying: Information files ###
40+
Copy-Item -Force "..\..\conformance_point_document.xsd" .
41+
Copy-Item -Force "..\..\License.html" .
42+
Copy-Item -Force "..\..\History_CLI.txt" "History.txt"
43+
Copy-Item -Force "..\Readme_CLI_Windows.txt" "ReadMe.txt"
44+
### Archive
45+
7za.exe a -r -tzip -mx9 "..\BWFMetaEdit_CLI_${version}_Windows_${arch_alt}.zip" *
46+
7za.exe a -r -tzip -mx9 "..\BWFMetaEdit_CLI_${version}_Windows_${arch_alt}_DebugInfo.zip" "..\..\Project\MSVC2022\CLI\${arch}\Release\bwfmetaedit.pdb"
47+
Pop-Location
48+
Pop-Location

Release/Release_CLI_Windows_i386.bat

Lines changed: 0 additions & 38 deletions
This file was deleted.

Release/Release_CLI_Windows_x64.bat

Lines changed: 0 additions & 38 deletions
This file was deleted.

Release/Release_GUI_Windows.ps1

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
## Copyright (c) MediaArea.net SARL. All Rights Reserved.
2+
##
3+
## Use of this source code is governed by a BSD-style license that can
4+
## be found in the License.html file in the root of the source tree.
5+
##
6+
7+
Param([parameter(Mandatory=$true)][String]$arch)
8+
9+
$ErrorActionPreference = "Stop"
10+
11+
#-----------------------------------------------------------------------
12+
# Setup
13+
$release_directory = $PSScriptRoot
14+
$version = (Get-Content "${release_directory}\..\Project\version.txt" -Raw).Trim()
15+
$arch_alt="${arch}"
16+
if ("${arch}" -eq "Win32" ) {
17+
$arch_alt="i386"
18+
}
19+
20+
#-----------------------------------------------------------------------
21+
# Cleanup
22+
$artifact = "${release_directory}\BWFMetaEdit_GUI_${version}_Windows_${arch_alt}"
23+
if (Test-Path "${artifact}") {
24+
Remove-Item -Force -Recurse "${artifact}"
25+
}
26+
27+
$artifact = "${release_directory}\BWFMetaEdit_GUI_${version}_Windows_${arch_alt}_WithoutInstaller.zip"
28+
if (Test-Path "${artifact}") {
29+
Remove-Item -Force "${artifact}"
30+
}
31+
32+
$artifact = "${release_directory}\BWFMetaEdit_GUI_${version}_Windows_${arch_alt}.exe"
33+
if (Test-Path "${artifact}") {
34+
Remove-Item -Force "${artifact}"
35+
}
36+
37+
#-----------------------------------------------------------------------
38+
# Package GUI
39+
Push-Location "${release_directory}"
40+
New-Item -Force -ItemType Directory -Path "BWFMetaEdit_GUI_${version}_Windows_${arch_alt}"
41+
Push-Location "BWFMetaEdit_GUI_${version}_Windows_${arch_alt}"
42+
### Copying: Exe ###
43+
Copy-Item -Force "..\..\Project\QtCreator\${arch}\BWF MetaEdit.exe" bwfmetaedit-gui.exe
44+
### Copying: Information files ###
45+
Copy-Item -Force "..\..\License.html" .
46+
Copy-Item -Force "..\..\History_GUI.txt" "History.txt"
47+
Copy-Item -Force "..\..\conformance_point_document.xsd" .
48+
Copy-Item -Force "..\Readme_GUI_Windows.txt" "ReadMe.txt"
49+
### Archive
50+
7za.exe a -r -tzip -mx9 "..\BWFMetaEdit_GUI_${version}_Windows_${arch_alt}_WithoutInstaller.zip" *
51+
Pop-Location
52+
Pop-Location
53+
54+
#-----------------------------------------------------------------------
55+
# Package installer
56+
Push-Location "${release_directory}"
57+
makensis.exe "..\Source\Install\BWF_MetaEdit_GUI_Windows_${arch_alt}.nsi"
58+
Pop-Location

Release/Release_GUI_Windows_i386.bat

Lines changed: 0 additions & 42 deletions
This file was deleted.

Release/Release_GUI_Windows_x64.bat

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)