-
Notifications
You must be signed in to change notification settings - Fork 454
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
7 changed files
with
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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
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