-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci][windows] sign executables using Azure
Signed-off-by: Vitalii Koshura <[email protected]>
- Loading branch information
Showing
11 changed files
with
176 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This file is part of BOINC. | ||
# https://boinc.berkeley.edu | ||
# Copyright (C) 2024 University of California | ||
# | ||
# BOINC is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU Lesser General Public License | ||
# as published by the Free Software Foundation, | ||
# either version 3 of the License, or (at your option) any later version. | ||
# | ||
# BOINC is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the GNU Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with BOINC. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
import sys | ||
import json | ||
|
||
def main(): | ||
if len(sys.argv) != 5: | ||
print("Usage: create_signing_metadata.py <output_file> <endpoint> <code_signing_account_name> <certificate_profile_name>") | ||
sys.exit(1) | ||
|
||
output_file = sys.argv[1] | ||
metadata = { | ||
"Endpoint": sys.argv[2], | ||
"CodeSigningAccountName": sys.argv[3], | ||
"CertificateProfileName": sys.argv[4] | ||
} | ||
|
||
with open(output_file, 'w', encoding='utf-8') as f: | ||
json.dump(metadata, f, ensure_ascii=False, indent=4) | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectName>installer_msi</ProjectName> | ||
<ProjectGuid>{88EB73FC-A865-4C3F-906D-44E00EF27A27}</ProjectGuid> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<Import Project="boinc.props" /> | ||
<PropertyGroup> | ||
<TargetName>boinc</TargetName> | ||
<TargetExt>.msi</TargetExt> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="..\installer\boinc.json" /> | ||
<None Include="..\installer\locale\en.json" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
<PropertyGroup> | ||
<CustomBuildBeforeTargets>ClCompile</CustomBuildBeforeTargets> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup> | ||
<CustomBuildStep> | ||
<Command>$(SolutionDir)Build\x64\$(Configuration)\installer.exe -p $(Platform)</Command> | ||
<Outputs>$(OutDir)$(TargetName)$(TargetExt)</Outputs> | ||
</CustomBuildStep> | ||
</ItemDefinitionGroup> | ||
<Import Project="boinc_signing.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters