Skip to content

Commit

Permalink
Merge pull request #1755 from ldennington/update-metadata
Browse files Browse the repository at this point in the history
Set up infrastructure for `wingetcreate`
  • Loading branch information
ldennington authored Oct 13, 2021
2 parents b05cf32 + 68d7d38 commit 8748fc2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-winget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
release:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- id: update-winget
name: Update winget repository
Expand Down
2 changes: 1 addition & 1 deletion GVFS/GVFS.Installers/GVFS.Installers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</ItemGroup>

<Target Name="CreateInstaller" BeforeTargets="Build;SignFiles">
<Exec Command="$(PkgTools_InnoSetup)\tools\ISCC.exe /DLayoutDir=$(LayoutPath) /DGVFSVersion=$(GVFSVersion) Setup.iss /O$(OutputPath)" />
<Exec Command='"$(PkgTools_InnoSetup)\tools\ISCC.exe" /DLayoutDir="$(LayoutPath)" /DGVFSVersion=$(GVFSVersion) Setup.iss /O"$(OutputPath)"' />
</Target>

<Target Name="CreateNuspecFile" AfterTargets="CreateInstaller">
Expand Down
4 changes: 2 additions & 2 deletions GVFS/GVFS.Installers/Setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

; General documentation on how to use InnoSetup scripts: http://www.jrsoftware.org/ishelp/index.php

#define MyAppName "GVFS"
#define MyAppName "VFS for Git"
#define MyAppInstallerVersion GetFileVersion(LayoutDir + "\GVFS.exe")
#define MyAppPublisher "Microsoft Corporation"
#define MyAppPublisher "Microsoft"
#define MyAppPublisherURL "http://www.microsoft.com"
#define MyAppURL "https://github.com/microsoft/VFSForGit"
#define MyAppExeName "GVFS.exe"
Expand Down
2 changes: 1 addition & 1 deletion GVFS/GVFS.Payload/GVFS.Payload.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>

<Target Name="CreatePayload" AfterTargets="CoreBuild" BeforeTargets="SignFiles">
<Exec Command="$(MSBuildThisFileDirectory)layout.bat $(Configuration) $(GVFSVersion) $(PkgGVFS_ProjFS) $(PkgGVFS_VCRuntime) $(OutputPath)" />
<Exec Command='"$(MSBuildThisFileDirectory)layout.bat" $(Configuration) $(GVFSVersion) "$(PkgGVFS_ProjFS)" "$(PkgGVFS_VCRuntime)" "$(OutputPath)"' />
</Target>

<Target Name="CleanPayload" BeforeTargets="AfterClean">
Expand Down
2 changes: 1 addition & 1 deletion GVFS/GVFS.Payload/layout.bat
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SET VCRUNTIME=%4
SET OUTPUT=%5

SET ROOT=%~dp0..\..
SET BUILD_OUT=%ROOT%\..\out
SET BUILD_OUT="%ROOT%\..\out"
SET MANAGED_OUT_FRAGMENT=bin\%CONFIGURATION%\net461\win-x64
SET NATIVE_OUT_FRAGMENT=bin\x64\%CONFIGURATION%

Expand Down
8 changes: 4 additions & 4 deletions scripts/Build.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@ECHO OFF
CALL %~dp0\InitializeEnvironment.bat || EXIT /b 10
CALL "%~dp0\InitializeEnvironment.bat" || EXIT /b 10
SETLOCAL
SETLOCAL EnableDelayedExpansion

Expand Down Expand Up @@ -44,7 +44,7 @@ IF NOT EXIST "%NUGET_EXEC%" (
REM Acquire vswhere to find VS installations reliably
SET VSWHERE_VER=2.6.7
"%NUGET_EXEC%" install vswhere -Version %VSWHERE_VER% || exit /b 1
SET VSWHERE_EXEC=%VFS_PACKAGESDIR%\vswhere.%VSWHERE_VER%\tools\vswhere.exe
SET VSWHERE_EXEC="%VFS_PACKAGESDIR%\vswhere.%VSWHERE_VER%\tools\vswhere.exe"

REM Assumes default installation location for Windows 10 SDKs
IF NOT EXIST "C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0" (
Expand All @@ -69,15 +69,15 @@ IF NOT DEFINED MSBUILD_EXEC (
ECHO ^**********************
ECHO ^* Restoring Packages *
ECHO ^**********************
"%MSBUILD_EXEC%" %VFS_SRCDIR%\GVFS.sln ^
"%MSBUILD_EXEC%" "%VFS_SRCDIR%\GVFS.sln" ^
/t:Restore ^
/v:%VERBOSITY% ^
/p:Configuration=%CONFIGURATION% || GOTO ERROR

ECHO ^*********************
ECHO ^* Building Solution *
ECHO ^*********************
"%MSBUILD_EXEC%" %VFS_SRCDIR%\GVFS.sln ^
"%MSBUILD_EXEC%" "%VFS_SRCDIR%\GVFS.sln" ^
/t:Build ^
/v:%VERBOSITY% ^
/p:Configuration=%CONFIGURATION% || GOTO ERROR
Expand Down

0 comments on commit 8748fc2

Please sign in to comment.