File tree Expand file tree Collapse file tree 8 files changed +21
-16
lines changed
.azure-pipelines/templates/windows Expand file tree Collapse file tree 8 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 7
7
8
8
- script : |
9
9
xcopy "out\windows\Installer.Windows\bin\$(configuration)\net461" "$(Build.StagingDirectory)\publish\"
10
- xcopy "out\windows\Payload.Windows\bin\$(configuration)\net461\win-x64 " "$(Build.StagingDirectory)\publish\payload\"
10
+ xcopy "out\windows\Payload.Windows\bin\$(configuration)\net461\win-x86 " "$(Build.StagingDirectory)\publish\payload\"
11
11
mkdir "$(Build.StagingDirectory)\publish\payload.sym\"
12
12
move "$(Build.StagingDirectory)\publish\payload\*.pdb" "$(Build.StagingDirectory)\publish\payload.sym\"
13
13
displayName: Prepare final build artifacts
18
18
rootFolderOrFile : ' $(Build.StagingDirectory)\publish\payload\'
19
19
includeRootFolder : false
20
20
archiveType : ' zip'
21
- archiveFile : ' $(Build.StagingDirectory)\publish\gcmcore-win-x64 -$(GitBuildVersion).zip'
21
+ archiveFile : ' $(Build.StagingDirectory)\publish\gcmcore-win-x86 -$(GitBuildVersion).zip'
22
22
replaceExistingArchive : true
23
23
24
24
- task : ArchiveFiles@2
27
27
rootFolderOrFile : ' $(Build.StagingDirectory)\publish\payload.sym\'
28
28
includeRootFolder : false
29
29
archiveType : ' zip'
30
- archiveFile : ' $(Build.StagingDirectory)\publish\symbols-win-x64 .zip'
30
+ archiveFile : ' $(Build.StagingDirectory)\publish\symbols-win-x86 .zip'
31
31
replaceExistingArchive : true
32
32
33
33
- task : PublishPipelineArtifact@0
Original file line number Diff line number Diff line change @@ -14,13 +14,19 @@ jobs:
14
14
github-token : ${{secrets.GITHUB_TOKEN}}
15
15
result-encoding : string
16
16
script : |
17
- const { data } = await github.repos.getReleaseByTag ({
17
+ const { data: releases } = await github.repos.listReleases ({
18
18
owner: context.repo.owner,
19
- repo: context.repo.repo,
20
- tag: process.env.GITHUB_REF
19
+ repo: context.repo.repo
21
20
});
21
+ const release = releases.find(x => x.tag_name === process.env.GITHUB_REF);
22
+ if (!release) {
23
+ throw new Error(`unable to find release with tag '${process.env.GITHUB_REF}'`);
24
+ }
22
25
const regex = /gcmcore-osx-(.*)\.pkg/;
23
- const asset = data.assets.find(x => regex.test(x.name));
26
+ const asset = release.assets.find(x => regex.test(x.name));
27
+ if (!asset) {
28
+ throw new Error(`unable to find asset matching '${regex}'`);
29
+ }
24
30
const matches = asset.name.match(regex);
25
31
const version = matches[1];
26
32
return version;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ msbuild /p:Configuration=WindowsDebug
37
37
38
38
You can find a copy of the installer .exe file in ` out\windows\Installer.Windows\bin\Debug\net461 ` .
39
39
40
- The flat binaries can also be found in ` out\windows\Payload.Windows\bin\Debug\net461\win-x64 ` .
40
+ The flat binaries can also be found in ` out\windows\Payload.Windows\bin\Debug\net461\win-x86 ` .
41
41
42
42
### Linux
43
43
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public async Task<RestApiResult<UserInfo>> GetUserInformationAsync(string userNa
80
80
81
81
if ( response . IsSuccessStatusCode )
82
82
{
83
- var obj = JsonConvert . DeserializeObject < UserInfo > ( json ) ;
83
+ var obj = JsonConvert . DeserializeObject < UserInfo > ( json , new JsonSerializerSettings { NullValueHandling = NullValueHandling . Ignore } ) ;
84
84
85
85
return new RestApiResult < UserInfo > ( response . StatusCode , obj ) ;
86
86
}
Original file line number Diff line number Diff line change 4
4
<OutputType >Exe</OutputType >
5
5
<TargetFrameworks >netcoreapp3.1</TargetFrameworks >
6
6
<TargetFrameworks Condition =" '$(OSPlatform)'=='windows'" >net461;netcoreapp3.1</TargetFrameworks >
7
- <RuntimeIdentifiers >win-x64 ;osx-x64</RuntimeIdentifiers >
8
- <PlatformTarget >x64 </PlatformTarget >
7
+ <RuntimeIdentifiers >win-x86 ;osx-x64</RuntimeIdentifiers >
8
+ <PlatformTarget Condition = " '$(OSPlatform)'=='windows' " >x86 </PlatformTarget >
9
9
<AssemblyName >git-credential-manager-core</AssemblyName >
10
10
<RootNamespace >Microsoft.Git.CredentialManager</RootNamespace >
11
11
<ApplicationIcon >$(RepoAssetsPath)gcmicon.ico</ApplicationIcon >
Original file line number Diff line number Diff line change 5
5
<PropertyGroup >
6
6
<TargetFramework >net461</TargetFramework >
7
7
<GenerateAssemblyInfo >false</GenerateAssemblyInfo >
8
- <PayloadPath >$(PlatformOutPath)Payload.Windows\bin\$(Configuration)\net461\win-x64 </PayloadPath >
8
+ <PayloadPath >$(PlatformOutPath)Payload.Windows\bin\$(Configuration)\net461\win-x86 </PayloadPath >
9
9
<EnableDefaultItems >false</EnableDefaultItems >
10
10
</PropertyGroup >
11
11
29
29
before we attempt to sign any files or validate they exist. -->
30
30
<Target Name =" CreateFilesToSignItems" DependsOnTargets =" GetBuildVersion" BeforeTargets =" PrepareForRun" >
31
31
<ItemGroup >
32
- <FilesToSign Include =" $(OutDir)gcmcore-win-x64 -$(BuildVersion).exe" >
32
+ <FilesToSign Include =" $(OutDir)gcmcore-win-x86 -$(BuildVersion).exe" >
33
33
<Authenticode >Microsoft400</Authenticode >
34
34
<InProject >false</InProject >
35
35
</FilesToSign >
Original file line number Diff line number Diff line change @@ -47,13 +47,12 @@ AppCopyright={#GcmCopyright}
47
47
AppReadmeFile = {#GcmReadme}
48
48
VersionInfoVersion = {#GcmVersion}
49
49
LicenseFile = {#GcmRepoRoot}\LICENSE
50
- OutputBaseFilename = gcmcore-win-x64 -{#GcmVersion}
50
+ OutputBaseFilename = gcmcore-win-x86 -{#GcmVersion}
51
51
DefaultDirName = {pf} \{#GcmName}
52
52
Compression = lzma2
53
53
SolidCompression = yes
54
54
MinVersion = 6.1 .7600
55
55
DisableDirPage = yes
56
- ArchitecturesInstallIn64BitMode = x64
57
56
UninstallDisplayIcon = {app} \git-credential-manager-core.exe
58
57
SetupIconFile = {#GcmAssets}\gcmicon.ico
59
58
WizardImageFile = {#GcmAssets}\gcmicon128.bmp
Original file line number Diff line number Diff line change 4
4
5
5
<PropertyGroup >
6
6
<TargetFramework >net461</TargetFramework >
7
- <RuntimeIdentifier >win-x64 </RuntimeIdentifier >
7
+ <RuntimeIdentifier >win-x86 </RuntimeIdentifier >
8
8
<GenerateAssemblyInfo >false</GenerateAssemblyInfo >
9
9
</PropertyGroup >
10
10
You can’t perform that action at this time.
0 commit comments