From a06a150c090a477c4e118399defbf4e03a47c2a5 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 11 Nov 2013 14:29:50 -0800 Subject: [PATCH] Modify zip command to exclude metadata This will keep git repos from finding changes every time a resorces is zipped --- lib/abusetheforce/cli.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/abusetheforce/cli.rb b/lib/abusetheforce/cli.rb index 0e43b4f..6bc88fa 100644 --- a/lib/abusetheforce/cli.rb +++ b/lib/abusetheforce/cli.rb @@ -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 -