From 7ca649c58b96d3e4afe52da7599bd9bc1def17a2 Mon Sep 17 00:00:00 2001 From: Joe Lollo <53008442+ChessPiece21@users.noreply.github.com> Date: Tue, 31 Aug 2021 15:45:04 -0700 Subject: [PATCH] Delete package.rb --- package.rb | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 package.rb diff --git a/package.rb b/package.rb deleted file mode 100644 index cc26c40..0000000 --- a/package.rb +++ /dev/null @@ -1,22 +0,0 @@ -require 'rubygems' -require 'zip' - -# Delete existing archive -folder = Dir.pwd -zipfile_name = folder + '/drumpfinator.zip' -File.delete(zipfile_name) if File.exist?(zipfile_name) - -# Get files to zip -input_files = Dir.glob("**/*") -input_files.delete(File.basename(__FILE__)) -input_files.delete('README.md') - -# Create new archive -puts 'Packaging extension into file ' + zipfile_name -Zip::File.open(zipfile_name, Zip::File::CREATE) do |zipfile| - input_files.each do |filename| - print 'Adding file ' + filename + '...' - zipfile.add(filename, folder + '/' + filename) - print "Done\n" - end -end \ No newline at end of file