makeicon 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/makeicon/version.rb +1 -1
- data/lib/makeicon.rb +2 -3
- data/makeicon.exe +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac23e6a2b7c2f95943fd1c7a0920b76813238f01
|
|
4
|
+
data.tar.gz: '0952d804ab0392a8977a9139ef44e45c2fb43b1a'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ebbb1444894070ce678d29b9127b5ec40d2f422afa1413df2df953e12aecb58342869aeeee8a2651d9d0f6b9d089393e8777cca33d6b0cfecf8defd304c4a81
|
|
7
|
+
data.tar.gz: f4eba54bd89607a280f743c02fa3623c5a9c547a2b659bf936eb4239f2aa3bc801323cef72ebac4c935a0e9438442c257e563686c7ab1bf1749c7a458b6a9311
|
data/lib/makeicon/version.rb
CHANGED
data/lib/makeicon.rb
CHANGED
|
@@ -89,7 +89,7 @@ module MakeIcon
|
|
|
89
89
|
require 'mini_magick'
|
|
90
90
|
image = MiniMagick::Image.open(fname)
|
|
91
91
|
fpname = Pathname.new(fname)
|
|
92
|
-
basedir = fpname.dirname
|
|
92
|
+
basedir = fpname.dirname + Pathname.new(params[:appicon_path])
|
|
93
93
|
|
|
94
94
|
Helper::AppiconHelper.check_input_image_size(image, 512)
|
|
95
95
|
|
|
@@ -112,12 +112,11 @@ module MakeIcon
|
|
|
112
112
|
filename = "#{params[:appicon_filename]}_#{width}x#{height}.png"
|
|
113
113
|
end
|
|
114
114
|
FileUtils.mkdir_p(basepath)
|
|
115
|
-
puts basepath + filename
|
|
116
115
|
image.resize "#{width}x#{height}"
|
|
117
116
|
image.write basepath + filename
|
|
118
117
|
end
|
|
119
118
|
|
|
120
|
-
puts "Successfully stored launcher icons at '#{
|
|
119
|
+
puts "Successfully stored launcher icons at '#{basedir}'"
|
|
121
120
|
end
|
|
122
121
|
|
|
123
122
|
def self.get_custom_sizes(image, custom_sizes)
|
data/makeicon.exe
CHANGED
|
Binary file
|