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 11[Desktop Entry]
22Name =SourceGit
33Comment =Open-source & Free Git GUI Client
4- Exec =/usr/bin /sourcegit
4+ Exec =/opt/sourcegit /sourcegit
55Icon =/usr/share/icons/sourcegit.png
66Terminal =false
77Type =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}
2121mkdir -p %{buildroot }/usr/share/applications
2222mkdir -p %{buildroot }/usr/share/icons
2323cp -f ../../../SourceGit/* %{buildroot }/opt/sourcegit/
24- cp -f ../../_common /sourcegit %{buildroot }/%{_bindir }
24+ ln -rsf %{ buildroot }/opt/sourcegit /sourcegit %{buildroot }/%{_bindir }
2525cp -r ../../_common/applications %{buildroot }/%{_datadir }
2626cp -r ../../_common/icons %{buildroot }/%{_datadir }
2727chmod 755 -R %{buildroot }/opt/sourcegit
2828chmod 755 %{buildroot }/%{_datadir }/applications/sourcegit.desktop
29- chmod 755 %{buildroot }/%{_bindir }/sourcegit
3029
3130%files
3231%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
4242 --set-icon com.sourcegit_scm.SourceGit --set-key=Exec --set-value=AppRun
4343mv SourceGit.AppDir/usr/share/applications/{sourcegit,com.sourcegit_scm.SourceGit}.desktop
4444cp 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
4746ln -rsf SourceGit.AppDir/usr/share/applications/com.sourcegit_scm.SourceGit.desktop SourceGit.AppDir
4847cp resources/appimage/sourcegit.appdata.xml SourceGit.AppDir/usr/share/metainfo/com.sourcegit_scm.SourceGit.appdata.xml
4948
@@ -54,10 +53,9 @@ mkdir -p resources/deb/usr/bin
5453mkdir -p resources/deb/usr/share/applications
5554mkdir -p resources/deb/usr/share/icons
5655cp -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
5857cp -r resources/_common/applications resources/deb/usr/share
5958cp -r resources/_common/icons resources/deb/usr/share
60- chmod 755 resources/deb/usr/bin/sourcegit
6159# Calculate installed size in KB
6260installed_size=$( du -sk resources/deb | cut -f1)
6361# Update the control file
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ private ProcessStartInfo CreateGitStartInfo(bool redirect)
172172
173173 // If an SSH private key was provided, sets the environment.
174174 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 } ' ") ;
176176
177177 // Force using en_US.UTF-8 locale
178178 if ( OperatingSystem . IsLinux ( ) )
You can’t perform that action at this time.
0 commit comments