Skip to content

Commit 18d3b95

Browse files
committed
Merge branch 'release/v2025.08'
2 parents 4418214 + 82fdd2e commit 18d3b95

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+777
-491
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,25 @@ jobs:
1919
os: macos-latest
2020
runtime: osx-arm64
2121
- name : Linux
22-
os: ubuntu-20.04
22+
os: ubuntu-latest
2323
runtime: linux-x64
24+
container: ubuntu:20.04
2425
- name : Linux (arm64)
25-
os: ubuntu-20.04
26+
os: ubuntu-latest
2627
runtime: linux-arm64
28+
container: ubuntu:20.04
2729
name: Build ${{ matrix.name }}
2830
runs-on: ${{ matrix.os }}
31+
container: ${{ matrix.container || '' }}
2932
steps:
33+
- name: Install common CLI tools
34+
if: ${{ startsWith(matrix.runtime, 'linux-') }}
35+
run: |
36+
export DEBIAN_FRONTEND=noninteractive
37+
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
38+
apt-get update
39+
apt-get install -y sudo
40+
sudo apt-get install -y curl wget git unzip zip libicu66 tzdata clang
3041
- name: Checkout sources
3142
uses: actions/checkout@v4
3243
- name: Setup .NET
@@ -47,7 +58,7 @@ jobs:
4758
if: ${{ matrix.runtime == 'linux-arm64' }}
4859
run: |
4960
sudo apt-get update
50-
sudo apt-get install clang llvm gcc-aarch64-linux-gnu zlib1g-dev:arm64
61+
sudo apt-get install -y llvm gcc-aarch64-linux-gnu zlib1g-dev:arm64
5162
- name: Build
5263
run: dotnet build -c Release
5364
- name: Publish

.github/workflows/package.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ on:
99
jobs:
1010
windows:
1111
name: Package Windows
12-
runs-on: ubuntu-latest
12+
runs-on: windows-2019
1313
strategy:
1414
matrix:
15-
runtime: [win-x64, win-arm64]
15+
runtime: [ win-x64, win-arm64 ]
1616
steps:
1717
- name: Checkout sources
1818
uses: actions/checkout@v4
@@ -22,6 +22,7 @@ jobs:
2222
name: sourcegit.${{ matrix.runtime }}
2323
path: build/SourceGit
2424
- name: Package
25+
shell: bash
2526
env:
2627
VERSION: ${{ inputs.version }}
2728
RUNTIME: ${{ matrix.runtime }}
@@ -69,6 +70,7 @@ jobs:
6970
linux:
7071
name: Package Linux
7172
runs-on: ubuntu-latest
73+
container: ubuntu:20.04
7274
strategy:
7375
matrix:
7476
runtime: [linux-x64, linux-arm64]
@@ -77,9 +79,10 @@ jobs:
7779
uses: actions/checkout@v4
7880
- name: Download package dependencies
7981
run: |
80-
sudo add-apt-repository universe
81-
sudo apt-get update
82-
sudo apt-get install desktop-file-utils rpm libfuse2
82+
export DEBIAN_FRONTEND=noninteractive
83+
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
84+
apt-get update
85+
apt-get install -y curl wget git dpkg-dev fakeroot tzdata zip unzip desktop-file-utils rpm libfuse2 file build-essential binutils
8386
- name: Download build
8487
uses: actions/download-artifact@v4
8588
with:
@@ -89,6 +92,7 @@ jobs:
8992
env:
9093
VERSION: ${{ inputs.version }}
9194
RUNTIME: ${{ matrix.runtime }}
95+
APPIMAGE_EXTRACT_AND_RUN: 1
9296
run: |
9397
mkdir build/SourceGit
9498
tar -xf "build/sourcegit.${{ matrix.runtime }}.tar" -C build/SourceGit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
4848
## Translation Status
4949

50-
[![en_US](https://img.shields.io/badge/en__US-%E2%88%9A-brightgreen)](TRANSLATION.md) [![de__DE](https://img.shields.io/badge/de__DE-99.21%25-yellow)](TRANSLATION.md) [![es__ES](https://img.shields.io/badge/es__ES-99.87%25-yellow)](TRANSLATION.md) [![fr__FR](https://img.shields.io/badge/fr__FR-91.80%25-yellow)](TRANSLATION.md) [![it__IT](https://img.shields.io/badge/it__IT-%E2%88%9A-brightgreen)](TRANSLATION.md) [![pt__BR](https://img.shields.io/badge/pt__BR-91.53%25-yellow)](TRANSLATION.md) [![ru__RU](https://img.shields.io/badge/ru__RU-99.07%25-yellow)](TRANSLATION.md) [![zh__CN](https://img.shields.io/badge/zh__CN-%E2%88%9A-brightgreen)](TRANSLATION.md) [![zh__TW](https://img.shields.io/badge/zh__TW-%E2%88%9A-brightgreen)](TRANSLATION.md)
50+
[![en_US](https://img.shields.io/badge/en__US-%E2%88%9A-brightgreen)](TRANSLATION.md) [![de__DE](https://img.shields.io/badge/de__DE-99.08%25-yellow)](TRANSLATION.md) [![es__ES](https://img.shields.io/badge/es__ES-%E2%88%9A-brightgreen)](TRANSLATION.md) [![fr__FR](https://img.shields.io/badge/fr__FR-91.68%25-yellow)](TRANSLATION.md) [![it__IT](https://img.shields.io/badge/it__IT-99.87%25-yellow)](TRANSLATION.md) [![pt__BR](https://img.shields.io/badge/pt__BR-91.41%25-yellow)](TRANSLATION.md) [![ru__RU](https://img.shields.io/badge/ru__RU-%E2%88%9A-brightgreen)](TRANSLATION.md) [![zh__CN](https://img.shields.io/badge/zh__CN-%E2%88%9A-brightgreen)](TRANSLATION.md) [![zh__TW](https://img.shields.io/badge/zh__TW-%E2%88%9A-brightgreen)](TRANSLATION.md)
5151

5252
> [!NOTE]
5353
> You can find the missing keys in [TRANSLATION.md](TRANSLATION.md)

SourceGit.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ EndProject
6060
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DEBIAN", "DEBIAN", "{F101849D-BDB7-40D4-A516-751150C3CCFC}"
6161
ProjectSection(SolutionItems) = preProject
6262
build\resources\deb\DEBIAN\control = build\resources\deb\DEBIAN\control
63+
build\resources\deb\DEBIAN\preinst = build\resources\deb\DEBIAN\preinst
64+
build\resources\deb\DEBIAN\prerm = build\resources\deb\DEBIAN\prerm
6365
EndProjectSection
6466
EndProject
6567
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "rpm", "rpm", "{9BA0B044-0CC9-46F8-B551-204F149BF45D}"

TRANSLATION.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### de_DE.axaml: 99.21%
1+
### de_DE.axaml: 99.08%
22

33

44
<details>
@@ -9,21 +9,22 @@
99
- Text.Diff.First
1010
- Text.Diff.Last
1111
- Text.Preferences.AI.Streaming
12+
- Text.Preferences.Appearance.EditorTabWidth
1213
- Text.StashCM.SaveAsPatch
1314

1415
</details>
1516

16-
### es_ES.axaml: 99.87%
17+
### es_ES.axaml: 100.00%
1718

1819

1920
<details>
2021
<summary>Missing Keys</summary>
2122

22-
- Text.StashCM.SaveAsPatch
23+
2324

2425
</details>
2526

26-
### fr_FR.axaml: 91.80%
27+
### fr_FR.axaml: 91.68%
2728

2829

2930
<details>
@@ -56,6 +57,7 @@
5657
- Text.MergeMultiple.Strategy
5758
- Text.MergeMultiple.Targets
5859
- Text.Preferences.AI.Streaming
60+
- Text.Preferences.Appearance.EditorTabWidth
5961
- Text.Preferences.Appearance.FontSize
6062
- Text.Preferences.Appearance.FontSize.Default
6163
- Text.Preferences.Appearance.FontSize.Editor
@@ -94,17 +96,17 @@
9496

9597
</details>
9698

97-
### it_IT.axaml: 100.00%
99+
### it_IT.axaml: 99.87%
98100

99101

100102
<details>
101103
<summary>Missing Keys</summary>
102104

103-
105+
- Text.Preferences.Appearance.EditorTabWidth
104106

105107
</details>
106108

107-
### pt_BR.axaml: 91.53%
109+
### pt_BR.axaml: 91.41%
108110

109111

110112
<details>
@@ -148,6 +150,7 @@
148150
- Text.MergeMultiple.Strategy
149151
- Text.MergeMultiple.Targets
150152
- Text.Preferences.AI.Streaming
153+
- Text.Preferences.Appearance.EditorTabWidth
151154
- Text.Preferences.General.DateFormat
152155
- Text.Preferences.General.ShowChildren
153156
- Text.Preferences.Git.SSLVerify
@@ -177,19 +180,13 @@
177180

178181
</details>
179182

180-
### ru_RU.axaml: 99.07%
183+
### ru_RU.axaml: 100.00%
181184

182185

183186
<details>
184187
<summary>Missing Keys</summary>
185188

186-
- Text.BranchCM.CustomAction
187-
- Text.BranchUpstreamInvalid
188-
- Text.Configure.CustomAction.Scope.Branch
189-
- Text.Diff.First
190-
- Text.Diff.Last
191-
- Text.Preferences.AI.Streaming
192-
- Text.StashCM.SaveAsPatch
189+
193190

194191
</details>
195192

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.07
1+
2025.08

build/resources/deb/DEBIAN/preinst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
# summary of how this script can be called:
6+
# * <new-preinst> `install'
7+
# * <new-preinst> `install' <old-version>
8+
# * <new-preinst> `upgrade' <old-version>
9+
# * <old-preinst> `abort-upgrade' <new-version>
10+
# for details, see http://www.debian.org/doc/debian-policy/
11+
12+
case "$1" in
13+
install|upgrade)
14+
# Check if SourceGit is running and stop it
15+
if pgrep -f '/opt/sourcegit/sourcegit' > /dev/null; then
16+
echo "Stopping running SourceGit instance..."
17+
pkill -f '/opt/sourcegit/sourcegit' || true
18+
# Give the process a moment to terminate
19+
sleep 1
20+
fi
21+
;;
22+
23+
abort-upgrade)
24+
;;
25+
26+
*)
27+
echo "preinst called with unknown argument \`$1'" >&2
28+
exit 1
29+
;;
30+
esac
31+
32+
exit 0

build/resources/deb/DEBIAN/prerm

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
# summary of how this script can be called:
6+
# * <prerm> `remove'
7+
# * <old-prerm> `upgrade' <new-version>
8+
# * <new-prerm> `failed-upgrade' <old-version>
9+
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
10+
# * <deconfigured's-prerm> `deconfigure' `in-favour'
11+
# <package-being-installed> <version> `removing'
12+
# <conflicting-package> <version>
13+
# for details, see http://www.debian.org/doc/debian-policy/ or
14+
# the debian-policy package
15+
16+
case "$1" in
17+
remove|upgrade|deconfigure)
18+
if pgrep -f '/opt/sourcegit/sourcegit' > /dev/null; then
19+
echo "Stopping running SourceGit instance..."
20+
pkill -f '/opt/sourcegit/sourcegit' || true
21+
# Give the process a moment to terminate
22+
sleep 1
23+
fi
24+
;;
25+
26+
failed-upgrade)
27+
;;
28+
29+
*)
30+
echo "prerm called with unknown argument \`$1'" >&2
31+
exit 1
32+
;;
33+
esac
34+
35+
exit 0

build/scripts/package.windows.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ cd build
99

1010
rm -rf SourceGit/*.pdb
1111

12-
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit
12+
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then
13+
powershell -Command "Compress-Archive -Path SourceGit\\* -DestinationPath \"sourcegit_$VERSION.$RUNTIME.zip\" -Force"
14+
else
15+
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit
16+
fi

src/App.axaml.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,14 @@ private bool TryLaunchAsCoreEditor(IClassicDesktopStyleApplicationLifetime deskt
445445

446446
var file = args[1];
447447
if (!File.Exists(file))
448+
{
448449
desktop.Shutdown(-1);
449-
else
450-
desktop.MainWindow = new Views.StandaloneCommitMessageEditor(file);
450+
return true;
451+
}
451452

453+
var editor = new Views.StandaloneCommitMessageEditor();
454+
editor.SetFile(file);
455+
desktop.MainWindow = editor;
452456
return true;
453457
}
454458

@@ -461,7 +465,9 @@ private bool TryLaunchAsAskpass(IClassicDesktopStyleApplicationLifetime desktop)
461465
var args = desktop.Args;
462466
if (args?.Length > 0)
463467
{
464-
desktop.MainWindow = new Views.Askpass(args[0]);
468+
var askpass = new Views.Askpass();
469+
askpass.TxtDescription.Text = args[0];
470+
desktop.MainWindow = askpass;
465471
return true;
466472
}
467473

0 commit comments

Comments
 (0)