Use versioned apkg filenames.
[doldaconnect.git] / autopackage / guishell.apspec.in
index b86283b..1d0b058 100644 (file)
@@ -12,6 +12,7 @@ License: GNU General Public License, Version 2 or later
 SoftwareVersion: @VERSION@
 Repository: http://www.dolda2000.com/~fredrik/doldaconnect/ap/doldaconnect-guishell.xml
 AutopackageTarget: 1.2
+PackageFileName: doldaconnect-guishell-@VERSION@.package
 
 [BuildPrepare]
 prepareBuild --enable-dolconf --enable-guishell --disable-gtk2ui --disable-daemon
@@ -26,6 +27,7 @@ echo bin share | import
 require @gtk.org/gtk 2.10
 require @dolda2000.com/fredrik/doldaconnect/dcuilib 1.1
 requireAtLeast "@dolda2000.com/fredrik/doldaconnect/dolcon:@VERSION@"
+requireAtLeast "@dolda2000.com/fredrik/doldaconnect/doldacond:@VERSION@"
 
 [Install]
 installExe bin/dolconf
@@ -33,6 +35,8 @@ installExe bin/dolcon-launch
 installExe bin/doldacond-shell
 installLocale share/locale
 installIcon share/icons/hicolor
+createBootstrapScript "$PREFIX/bin/dolcon-launch" "$PREFIX/bin/dolcon-launch.apkg"
+sed -i 's/\(Exec *= *dolcon-launch\)/\1.apkg/' share/applications/dolcon.desktop
 installMenuItem "Network/File sharing" share/applications/dolcon.desktop
 
 [Uninstall]