Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Rakefile: customizing the windows build and icon (these are all ch…

…anges to accomodate hackety hack.)
  • Loading branch information...
commit 424ecced2e5b704ae811575dc72a3085064d44cf 1 parent c9b5bef
_why authored
View
12 Rakefile
@@ -11,7 +11,8 @@ APPNAME = APP['name']
RELEASE_ID, RELEASE_NAME = APP['version'], APP['release']
NAME = APP['shortname'] || APP['name'].downcase.gsub(/\W+/, '')
SONAME = 'shoes'
-REVISION = (`#{ENV['GIT'] || "git"} rev-list HEAD`.split.length + 1).to_s
+GIT = ENV['GIT'] || "git"
+REVISION = (`#{GIT} rev-list HEAD`.split.length + 1).to_s
VERS = ENV['VERSION'] || "0.r#{REVISION}"
PKG = "#{NAME}-#{VERS}"
APPARGS = APP['run']
@@ -198,7 +199,11 @@ task :build => [:build_os, "dist/VERSION.txt"] do
end
if ENV['APP']
- cp_r ENV['APP'], "dist/app"
+ if APP['clone']
+ sh APP['clone'].gsub(/^git /, "#{GIT} --git-dir=#{ENV['APP']}/.git ")
+ else
+ cp_r ENV['APP'], "dist/app"
+ end
end
cp_r "fonts", "dist/fonts"
cp_r "lib", "dist/lib"
@@ -294,6 +299,7 @@ when /win32/
end
end
end
+ cp APP['icons']['win32'], "shoes/appwin32.ico"
mkdir_p "dist/pkg"
end
@@ -476,7 +482,7 @@ end
task :tarball => ['bin/main.c', 'shoes/version.h'] do
mkdir_p "pkg"
rm_rf PKG
- sh "git-checkout-index --prefix=#{PKG}/ -a"
+ sh "#{GIT} checkout-index --prefix=#{PKG}/ -a"
rm "#{PKG}/bin/main.skel"
rm "#{PKG}/Rakefile"
rm "#{PKG}/.gitignore"
View
2  app.yaml
@@ -2,6 +2,6 @@ name: Shoes
version: 3
release: Policeman
icons:
- win32: shoes/appwin32.ico
+ win32: platform/msw/shoes.ico
osx: static/Shoes.icns
gtk: static/shoes-icon.png
View
0  shoes/appwin32.ico → platform/msw/shoes.ico
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.