mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-14 07:29:12 +08:00
Quick and dirty packaging
This commit is contained in:
parent
394c24eb16
commit
27f0eb2c95
34
pack.rb
34
pack.rb
@ -0,0 +1,34 @@
|
|||||||
|
# Samuel Vasko 2013
|
||||||
|
# Cmder packing script -- Creates zip files for relase
|
||||||
|
|
||||||
|
require "fileutils"
|
||||||
|
|
||||||
|
def create_archive name, exclude
|
||||||
|
if exclude
|
||||||
|
exclude = " -x!" + exclude
|
||||||
|
else
|
||||||
|
exclude = ""
|
||||||
|
end
|
||||||
|
puts "Running 7z a -x@cmder\\packignore" + exclude + " " + name + " cmder"
|
||||||
|
system("7z a -x@cmder\packignore + "+ name +" cmder")
|
||||||
|
end
|
||||||
|
|
||||||
|
targets = [
|
||||||
|
["cmder.zip"],
|
||||||
|
["cmder.7z"],
|
||||||
|
["cmder_mini.zip", "vendor\\msysgit"]
|
||||||
|
]
|
||||||
|
|
||||||
|
unless system("git describe --abbrev=0 --tags")
|
||||||
|
puts "Failied to get the last tag from git, looks like something is missing"
|
||||||
|
end
|
||||||
|
|
||||||
|
version = `git describe --abbrev=0 --tags`
|
||||||
|
FileUtils.touch('Version ' + version)
|
||||||
|
|
||||||
|
targets.each do |ar|
|
||||||
|
create_archive ar[0], ar[1]
|
||||||
|
end
|
||||||
|
|
||||||
|
FileUtils.rm('Version ' + version)
|
||||||
|
|
8
packignore
Normal file
8
packignore
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
cmder\launcher
|
||||||
|
cmder\icons
|
||||||
|
cmder\.gitignore
|
||||||
|
cmder\.gitattributes
|
||||||
|
cmder\.git
|
||||||
|
cmder\*.rb
|
||||||
|
cmder\packignore
|
||||||
|
cmder\Cmder.bat
|
Loading…
Reference in New Issue
Block a user