/
Rakefile
42 lines (35 loc) · 979 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require "rubygems"
require "rake"
require "choctop"
require "deploy/ftp_sync"
require 'highline/import'
module Appcast
def upload_appcast
passwd = ask("Password for ftp server please: ") { |q| q.echo = "x"}
ftp = FtpSync.new('ftp.huesler-informatik.ch', 'hallenprojekt@huesler-informatik.ch', passwd.chomp)
ftp.sync(build_path, '/')
end
def make_dmg_symlink
FileUtils.chdir(build_path) do
system("rm #{versionless_pkg_name}")
`ln -s '#{pkg_name}' '#{versionless_pkg_name}'`
end
end
end
ChocTop.new do |s|
# Custom DMG
# s.background_file = "background.jpg"
# s.app_icon_position = [100, 90]
# s.applications_icon_position = [400, 90]
# s.volume_icon = "dmg.icns"
# s.applications_icon = "appicon.icns" # or "appicon.png"
end
desc "Cleanup"
task :cleanup do
puts "Cleaning up directories"
`rm -Rf appcast`
`rm -Rf build/Release/dmg`
end
desc "Release"
task :release => [:cleanup,:build,:dmg,:feed,:upload] do
end