Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F130849
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/experimental/deb/mk-deb.rb b/experimental/deb/mk-deb.rb
index 2d286cd..e8fdf56 100755
--- a/experimental/deb/mk-deb.rb
+++ b/experimental/deb/mk-deb.rb
@@ -1,37 +1,52 @@
#!/usr/bin/ruby
require 'fileutils'
load '../../version.rb'
$package = "guitar"
$maintainer = "foo <foo@example.com>"
$version = "#{$version_a}.#{$version_b}.#{$version_c}"
$workdir = "build"
$bindir = "build"
$dstdir = $workdir + "/#{$package}"
$arch = "i386"
if `uname -a` =~ /(x86_64)|(amd64)/
$arch = "amd64"
elsif `uname -a` =~ /armv7l/
$arch = "armhf"
end
FileUtils.mkpath($dstdir + "/DEBIAN")
FileUtils.mkpath($dstdir + "/usr/bin")
+FileUtils.mkpath($dstdir + "/usr/share/applications")
+FileUtils.mkpath($dstdir + "/usr/share/icons/guitar")
FileUtils.cp("#{$bindir}/Guitar", $dstdir + "/usr/bin/")
system "strip #{$dstdir}/usr/bin/Guitar"
+FileUtils.cp("../../LinuxDesktop/Guitar.svg", $dstdir + "/usr/share/icons/guitar/")
+File.open($dstdir + "/usr/share/applications/Guitar.desktop", "w") {|f|
+ f.puts <<___
+[Desktop Entry]
+Type=Application
+Name=Guitar
+Exec=/usr/bin/Guitar
+Icon=/usr/share/icons/guitar/Guitar.svg
+Terminal=false
+___
+}
File.open($dstdir + "/DEBIAN/control", "w") {|f|
f.puts <<___
Package: #{$package}
Maintainer: #{$maintainer}
Architecture: #{$arch}
Version: #{$version}
Depends: libqt5widgets5 (>= 5.5.0), libqt5xml5 (>= 5.5.0), libqt5svg5 (>= 5.5.0), libssl1.0.0, git, file
Description: Git GUI Client
___
}
+FileUtils.cp("postinst", $dstdir + "/DEBIAN/")
+
system "fakeroot dpkg-deb --build #{$workdir}/#{$package} ."
diff --git a/experimental/deb/postinst b/experimental/deb/postinst
new file mode 100755
index 0000000..786fa6c
--- /dev/null
+++ b/experimental/deb/postinst
@@ -0,0 +1,2 @@
+#!/bin/sh
+update-desktop-database
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Jun 15, 11:37 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
70162
Default Alt Text
(1 KB)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline