File tree Expand file tree Collapse file tree 6 files changed +5
-16
lines changed Expand file tree Collapse file tree 6 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 1
1
[Desktop Entry]
2
2
Name =SourceGit
3
3
Comment =Open-source & Free Git GUI Client
4
- Exec =/usr/bin /sourcegit
4
+ Exec =/opt/sourcegit /sourcegit
5
5
Icon =/usr/share/icons/sourcegit.png
6
6
Terminal =false
7
7
Type =Application
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -21,12 +21,11 @@ mkdir -p %{buildroot}/%{_bindir}
21
21
mkdir -p %{buildroot }/usr/share/applications
22
22
mkdir -p %{buildroot }/usr/share/icons
23
23
cp -f ../../../SourceGit/* %{buildroot }/opt/sourcegit/
24
- cp -f ../../_common /sourcegit %{buildroot }/%{_bindir }
24
+ ln -rsf %{ buildroot }/opt/sourcegit /sourcegit %{buildroot }/%{_bindir }
25
25
cp -r ../../_common/applications %{buildroot }/%{_datadir }
26
26
cp -r ../../_common/icons %{buildroot }/%{_datadir }
27
27
chmod 755 -R %{buildroot }/opt/sourcegit
28
28
chmod 755 %{buildroot }/%{_datadir }/applications/sourcegit.desktop
29
- chmod 755 %{buildroot }/%{_bindir }/sourcegit
30
29
31
30
%files
32
31
%dir /opt/sourcegit/
Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ desktop-file-install resources/_common/applications/sourcegit.desktop --dir Sour
42
42
--set-icon com.sourcegit_scm.SourceGit --set-key=Exec --set-value=AppRun
43
43
mv SourceGit.AppDir/usr/share/applications/{sourcegit,com.sourcegit_scm.SourceGit}.desktop
44
44
cp resources/_common/icons/sourcegit.png SourceGit.AppDir/com.sourcegit_scm.SourceGit.png
45
- cp -f resources/appimage/sourcegit SourceGit.AppDir/AppRun
46
- chmod 755 SourceGit.AppDir/AppRun
45
+ ln -rsf SourceGit.AppDir/opt/sourcegit/sourcegit SourceGit.AppDir/AppRun
47
46
ln -rsf SourceGit.AppDir/usr/share/applications/com.sourcegit_scm.SourceGit.desktop SourceGit.AppDir
48
47
cp resources/appimage/sourcegit.appdata.xml SourceGit.AppDir/usr/share/metainfo/com.sourcegit_scm.SourceGit.appdata.xml
49
48
@@ -54,10 +53,9 @@ mkdir -p resources/deb/usr/bin
54
53
mkdir -p resources/deb/usr/share/applications
55
54
mkdir -p resources/deb/usr/share/icons
56
55
cp -f SourceGit/* resources/deb/opt/sourcegit
57
- cp -f resources/_common/ sourcegit resources/deb/usr/bin/
56
+ ln -rsf resources/deb/opt/ sourcegit/sourcegit resources/deb/usr/bin
58
57
cp -r resources/_common/applications resources/deb/usr/share
59
58
cp -r resources/_common/icons resources/deb/usr/share
60
- chmod 755 resources/deb/usr/bin/sourcegit
61
59
# Calculate installed size in KB
62
60
installed_size=$( du -sk resources/deb | cut -f1)
63
61
# Update the control file
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ private ProcessStartInfo CreateGitStartInfo(bool redirect)
172
172
173
173
// If an SSH private key was provided, sets the environment.
174
174
if ( ! start . Environment . ContainsKey ( "GIT_SSH_COMMAND" ) && ! string . IsNullOrEmpty ( SSHKey ) )
175
- start . Environment . Add ( "GIT_SSH_COMMAND" , $ "ssh -o AddKeysToAgent=yes -i { SSHKey . Quoted ( ) } ") ;
175
+ start . Environment . Add ( "GIT_SSH_COMMAND" , $ "ssh -i ' { SSHKey } ' ") ;
176
176
177
177
// Force using en_US.UTF-8 locale
178
178
if ( OperatingSystem . IsLinux ( ) )
You can’t perform that action at this time.
0 commit comments