mirror of
https://github.com/ViViDboarder/abuse-the-force.git
synced 2024-11-21 23:06:27 +00:00
Modify zip command to exclude metadata
This will keep git repos from finding changes every time a resorces is zipped
This commit is contained in:
parent
eb7004f6cb
commit
a06a150c09
@ -125,7 +125,7 @@ module AbuseTheForce
|
||||
zip_path = File.join(Atf_Config.get_project_path, 'staticresources', resource_name + '.resource')
|
||||
|
||||
# Compress the resource
|
||||
`cd $(dirname "#{resource_path}") && zip -r #{zip_path} #{resource_name}`
|
||||
`cd $(dirname "#{resource_path}") && zip -Xr #{zip_path} #{resource_name}`
|
||||
|
||||
# Write the meta.xml
|
||||
File.open(zip_path + '-meta.xml', 'w') {|f| f.write(XML_STATIC_RESOURCE) }
|
||||
@ -510,4 +510,3 @@ module AbuseTheForce
|
||||
|
||||
end # end module AbuseTheForce
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user