From feb02cef1ea62afff3557a1244fd2446b8244a2f Mon Sep 17 00:00:00 2001 From: Matthew John Cheetham Date: Thu, 22 Sep 2022 10:31:13 -0700 Subject: [PATCH] install: include core UI app in all installers --- src/linux/Packaging.Linux/build.sh | 10 ++++++++++ src/osx/Installer.Mac/layout.sh | 11 +++++++++++ src/windows/Installer.Windows/layout.ps1 | 8 ++++++++ 3 files changed, 29 insertions(+) diff --git a/src/linux/Packaging.Linux/build.sh b/src/linux/Packaging.Linux/build.sh index a9430850d..7509be929 100755 --- a/src/linux/Packaging.Linux/build.sh +++ b/src/linux/Packaging.Linux/build.sh @@ -47,6 +47,7 @@ ROOT="$( cd "$THISDIR"/../../.. ; pwd -P )" SRC="$ROOT/src" OUT="$ROOT/out" GCM_SRC="$SRC/shared/Git-Credential-Manager" +GCM_UI_SRC="$SRC/shared/Git-Credential-Manager.UI.Avalonia" BITBUCKET_UI_SRC="$SRC/shared/Atlassian.Bitbucket.UI.Avalonia" GITHUB_UI_SRC="$SRC/shared/GitHub.UI.Avalonia" GITLAB_UI_SRC="$SRC/shared/GitLab.UI.Avalonia" @@ -120,6 +121,15 @@ $DOTNET_ROOT/dotnet publish "$GCM_SRC" \ -p:PublishSingleFile=true \ --output="$(make_absolute "$PAYLOAD")" || exit 1 +echo "Publishing core UI helper..." +$DOTNET_ROOT/dotnet publish "$GCM_UI_SRC" \ + --configuration="$CONFIGURATION" \ + --framework="$FRAMEWORK" \ + --runtime="$RUNTIME" \ + --self-contained=true \ + -p:PublishSingleFile=true \ + --output="$(make_absolute "$PAYLOAD")" || exit 1 + echo "Publishing Bitbucket UI helper..." $DOTNET_ROOT/dotnet publish "$BITBUCKET_UI_SRC" \ --configuration="$CONFIGURATION" \ diff --git a/src/osx/Installer.Mac/layout.sh b/src/osx/Installer.Mac/layout.sh index b9991713d..179f1f0be 100755 --- a/src/osx/Installer.Mac/layout.sh +++ b/src/osx/Installer.Mac/layout.sh @@ -21,6 +21,7 @@ SRC="$ROOT/src" OUT="$ROOT/out" INSTALLER_SRC="$SRC/osx/Installer.Mac" GCM_SRC="$SRC/shared/Git-Credential-Manager" +GCM_UI_SRC="$SRC/shared/Git-Credential-Manager.UI.Avalonia" BITBUCKET_UI_SRC="$SRC/shared/Atlassian.Bitbucket.UI.Avalonia" GITHUB_UI_SRC="$SRC/shared/GitHub.UI.Avalonia" GITLAB_UI_SRC="$SRC/shared/GitLab.UI.Avalonia" @@ -104,6 +105,16 @@ dotnet publish "$GCM_SRC" \ --self-contained \ --output="$(make_absolute "$PAYLOAD")" || exit 1 +echo "Publishing core UI helper..." +dotnet publish "$GCM_UI_SRC" \ + --no-restore \ + -m:1 \ + --configuration="$CONFIGURATION" \ + --framework="$FRAMEWORK" \ + --runtime="$RUNTIME" \ + --self-contained \ + --output="$(make_absolute "$PAYLOAD")" || exit 1 + echo "Publishing Bitbucket UI helper..." dotnet publish "$BITBUCKET_UI_SRC" \ --no-restore \ diff --git a/src/windows/Installer.Windows/layout.ps1 b/src/windows/Installer.Windows/layout.ps1 index 6b43a2cb9..37e4a6955 100644 --- a/src/windows/Installer.Windows/layout.ps1 +++ b/src/windows/Installer.Windows/layout.ps1 @@ -8,6 +8,7 @@ $THISDIR = $pwd.path $ROOT = (Get-Item $THISDIR).parent.parent.parent.FullName $SRC = "$ROOT/src" $GCM_SRC = "$SRC/shared/Git-Credential-Manager" +$GCM_UI_SRC = "$SRC/windows/Git-Credential-Manager.UI.Windows" $BITBUCKET_UI_SRC = "$SRC/windows/Atlassian.Bitbucket.UI.Windows" $GITHUB_UI_SRC = "$SRC/windows/GitHub.UI.Windows" $GITLAB_UI_SRC = "$SRC/windows/GitLab.UI.Windows" @@ -45,6 +46,13 @@ dotnet publish "$GCM_SRC" ` --runtime win-x86 ` --output "$PAYLOAD" +Write-Output "Publishing core UI helper..." +dotnet publish "$GCM_UI_SRC" ` + --framework net472 ` + --configuration "$CONFIGURATION" ` + --runtime win-x86 ` + --output "$PAYLOAD" + Write-Output "Publishing Bitbucket UI helper..." dotnet publish "$BITBUCKET_UI_SRC" ` --configuration "$CONFIGURATION" `