Fix relative paths in zips

Introduced in #9
This commit is contained in:
ViViDboarder 2013-04-30 13:36:15 -07:00
parent a2c144667e
commit 8030fe5f57
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ module AbuseTheForce
eos
# Compress the resource
`zip -r #{zip_path} #{resource_path}`
`cd $(dirname "#{resource_path}") && zip -r #{zip_path} #{resource_name}`
# Write the meta.xml
File.open(zip_path + '-meta.xml', 'w') {|f| f.write(static_resource_xml) }