Skip to content

Commit 7d3f228

Browse files
committed
Merge branch 'release/v8.20'
2 parents b193579 + 212c9e0 commit 7d3f228

Some content is hidden

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

85 files changed

+2518
-1228
lines changed

README.md

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ This software creates a folder `$"{System.Environment.SpecialFolder.ApplicationD
5252
For **Windows** users:
5353

5454
* **MSYS Git is NOT supported**. Please use official [Git for Windows](https://git-scm.com/download/win) instead.
55-
* `sourcegit_x.y.win-x64.zip` may be reported as virus by Windows Defender. I don't know why. I have manually tested the zip to be uploaded using Windows Defender before uploading and no virus was found. If you have installed .NET 8 SDK locally, I suggest you to compile it yourself. And if you have any idea about how to fix this, please open an issue.
55+
* You can install the latest stable by `winget install SourceGit`.
56+
- Note: `winget` will install this software as a commandline tool. You need run `SourceGit` from console or `Win+R` at the first time. Then you can add it to the taskbar.
57+
* Portable versions can be found in [Releases](https://github.com/sourcegit-scm/sourcegit/releases/latest)
5658

5759
For **macOS** users:
5860

@@ -80,9 +82,9 @@ This app supports open repository in external tools listed in the table below.
8082
| JetBrains Fleet | YES | YES | YES | FLEET_PATH |
8183
| Sublime Text | YES | YES | YES | SUBLIME_TEXT_PATH |
8284

83-
> * You can set the given environment variable for special tool if it can NOT be found by this app automatically.
84-
> * Installing `JetBrains Toolbox` will help this app to find other JetBrains tools installed on your device.
85-
> * On macOS, you may need to use `launchctl setenv` to make sure the app can read these environment variables.
85+
* You can set the given environment variable for special tool if it can NOT be found by this app automatically.
86+
* Installing `JetBrains Toolbox` will help this app to find other JetBrains tools installed on your device.
87+
* On macOS, you may need to use `launchctl setenv` to make sure the app can read these environment variables.
8688

8789
## Screenshots
8890

@@ -94,46 +96,9 @@ This app supports open repository in external tools listed in the table below.
9496

9597
![Theme Light](./screenshots/theme_light.png)
9698

97-
## How to Customize Theme
99+
* Custom Themes
98100

99-
1. Create a new json file, and provide your favorite colors with follow keys:
100-
101-
| Key | Description |
102-
| --- | --- |
103-
| Color.Window | Window background color |
104-
| Color.WindowBorder | Window border color. Only used on Linux. |
105-
| Color.TitleBar | Title bar background color |
106-
| Color.ToolBar | Tool bar background color |
107-
| Color.Popup | Popup panel background color |
108-
| Color.Contents | Background color used in inputs, data grids, file content viewer, change lists, text diff viewer, etc. |
109-
| Color.Badge | Badge background color |
110-
| Color.BadgeFG | Badge foreground color |
111-
| Color.Conflict | Conflict panel background color |
112-
| Color.ConflictForeground | Conflict panel foreground color |
113-
| Color.Border0 | Border color used in some controls, like Window, Tab, Toolbar, etc. |
114-
| Color.Border1 | Border color used in inputs, like TextBox, ComboBox, etc. |
115-
| Color.Border2 | Border color used in visual lines, like seperators, Rectange, etc. |
116-
| Color.FlatButton.Background | Flat button background color, like `Cancel`, `Commit & Push` button |
117-
| Color.FlatButton.BackgroundHovered | Flat button background color when hovered, like `Cancel` button |
118-
| Color.FG1 | Primary foreground color for all text elements |
119-
| Color.FG2 | Secondary foreground color for all text elements |
120-
| Color.Diff.EmptyBG | Background color used in empty lines in diff viewer |
121-
| Color.Diff.AddedBG | Background color used in added lines in diff viewer |
122-
| Color.Diff.DeletedBG | Background color used in deleted lines in diff viewer |
123-
| Color.Diff.AddedHighlight | Background color used for changed words in added lines in diff viewer |
124-
| Color.Diff.DeletedHighlight | Background color used for changed words in deleted lines in diff viewer |
125-
126-
For example:
127-
128-
```json
129-
{
130-
"Color.Window": "#FFFF6059"
131-
}
132-
```
133-
134-
2. Open `Preference` -> `Appearance`, choose the json file you just created in `Custom Color Schema`.
135-
136-
> **NOTE**: The `Custom Color Schema` will override the colors with same keys in current active theme.
101+
You can find custom themes from [sourcegit-theme](https://github.com/sourcegit-scm/sourcegit-theme.git)
137102

138103
## Contributing
139104

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.19
1+
8.20

build/build.linux.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
version=`cat ../VERSION`
44

55
# Cleanup
6-
rm -rf SourceGit *.tar.gz resources/deb/opt *.deb *.rpm
6+
rm -rf SourceGit *.tar.gz resources/deb/opt *.deb *.rpm *.AppImage
77

8-
# Compile
9-
dotnet publish ../src/SourceGit.csproj -c Release -r linux-x64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
10-
mv SourceGit/SourceGit SourceGit/sourcegit
11-
cp resources/app/App.icns SourceGit/sourcegit.icns
12-
rm -f SourceGit/*.dbg
8+
# Generic AppImage
9+
cd resources/appimage
10+
./publish-appimage -y -o sourcegit-${version}.linux.x86_64.AppImage
1311

14-
# General Linux archive
15-
tar -zcvf sourcegit_${version}.linux-x64.tar.gz SourceGit
16-
rm -f SourceGit/sourcegit.icns
12+
# Move to build dir
13+
mv AppImages/sourcegit-${version}.linux.x86_64.AppImage ../../
14+
mv AppImages/AppDir/usr/bin ../../SourceGit
15+
cd ../../
1716

1817
# Debain/Ubuntu package
1918
mkdir -p resources/deb/opt/sourcegit/

0 commit comments

Comments
 (0)