File tree Expand file tree Collapse file tree 6 files changed +16
-5
lines changed Expand file tree Collapse file tree 6 files changed +16
-5
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 =/opt/sourcegit /sourcegit
4
+ Exec =/usr/bin /sourcegit
5
5
Icon =/usr/share/icons/sourcegit.png
6
6
Terminal =false
7
7
Type =Application
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ eval ` ssh-agent -s`
4
+ /opt/sourcegit/sourcegit $@
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ eval ` ssh-agent -s`
4
+ " $APPDIR /opt/sourcegit/sourcegit" $@
Original file line number Diff line number Diff line change @@ -21,11 +21,12 @@ 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
- ln -rsf %{ buildroot }/opt/sourcegit /sourcegit %{buildroot }/%{_bindir }
24
+ cp -f ../../_common /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
29
30
30
31
%files
31
32
%dir /opt/sourcegit/
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ 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/appimage/sourcegit.png SourceGit.AppDir/com.sourcegit_scm.SourceGit.png
45
- ln -rsf SourceGit.AppDir/opt/sourcegit/sourcegit SourceGit.AppDir/AppRun
45
+ cp -f resources/appimage/sourcegit SourceGit.AppDir/AppRun
46
+ chmod 755 SourceGit.AppDir/AppRun
46
47
ln -rsf SourceGit.AppDir/usr/share/applications/com.sourcegit_scm.SourceGit.desktop SourceGit.AppDir
47
48
cp resources/appimage/sourcegit.appdata.xml SourceGit.AppDir/usr/share/metainfo/com.sourcegit_scm.SourceGit.appdata.xml
48
49
@@ -53,9 +54,10 @@ mkdir -p resources/deb/usr/bin
53
54
mkdir -p resources/deb/usr/share/applications
54
55
mkdir -p resources/deb/usr/share/icons
55
56
cp -f SourceGit/* resources/deb/opt/sourcegit
56
- ln -rsf resources/deb/opt/ sourcegit/sourcegit resources/deb/usr/bin
57
+ cp -f resources/_common/ sourcegit resources/deb/usr/bin/
57
58
cp -r resources/_common/applications resources/deb/usr/share
58
59
cp -r resources/_common/icons resources/deb/usr/share
60
+ chmod 755 resources/deb/usr/bin/sourcegit
59
61
# Calculate installed size in KB
60
62
installed_size=$( du -sk resources/deb | cut -f1)
61
63
# 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 -i ' { SSHKey } ' ") ;
175
+ start . Environment . Add ( "GIT_SSH_COMMAND" , $ "ssh -o AddKeysToAgent=yes -i { SSHKey . Quoted ( ) } ") ;
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