Skip to content

Commit

Permalink
removed unnecessary .png
Browse files Browse the repository at this point in the history
  • Loading branch information
onurgenes committed May 25, 2019
1 parent f1d6bc2 commit 17647c5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 25 deletions.
5 changes: 3 additions & 2 deletions Resizr.xcodeproj/project.pbxproj
Expand Up @@ -125,6 +125,7 @@
TargetAttributes = {
6E7997DD222EEE1600850D97 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1020;
SystemCapabilities = {
com.apple.Sandbox = {
enabled = 1;
Expand Down Expand Up @@ -325,7 +326,7 @@
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_BUNDLE_IDENTIFIER = com.onurgenes.Resizr;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -345,7 +346,7 @@
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_BUNDLE_IDENTIFIER = com.onurgenes.Resizr;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
Expand Up @@ -10,7 +10,7 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Resizr/HomeController.swift"
timestampString = "574444117.310375"
timestampString = "580485552.124264"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "176"
Expand All @@ -26,7 +26,7 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Resizr/HomeController.swift"
timestampString = "574444117.310761"
timestampString = "580485552.124584"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "177"
Expand All @@ -35,21 +35,5 @@
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Resizr/HomeController.swift"
timestampString = "574444117.310994"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "27"
endingLineNumber = "27"
landmarkName = "openSelection(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
6 changes: 3 additions & 3 deletions Resizr/HomeController.swift
Expand Up @@ -146,7 +146,7 @@ class HomeController: NSViewController {
try FileManager.default.createDirectory(at: withFolder, withIntermediateDirectories: true, attributes: nil)
try FileManager.default.createDirectory(at: withAssetSet, withIntermediateDirectories: true, attributes: nil)
for (name, image) in imagesDict {
let urlWithName = withAssetSet.appendingPathComponent(name + ".png")
let urlWithName = withAssetSet.appendingPathComponent(name + "")
guard let tiffRepresantation = image.tiffRepresentation, let bitmapImage = NSBitmapImageRep(data: tiffRepresantation) else { return }
let png = bitmapImage.representation(using: .png, properties: [:])
do {
Expand Down Expand Up @@ -179,13 +179,13 @@ class HomeController: NSViewController {
try FileManager.default.createDirectory(at: withFolder, withIntermediateDirectories: true, attributes: nil)
try FileManager.default.createDirectory(at: withAppIconSet, withIntermediateDirectories: true, attributes: nil)
for (name, image) in imagesDict {
let urlWithName = withAppIconSet.appendingPathComponent(name + ".png")
let urlWithName = withAppIconSet.appendingPathComponent(name)
guard let tiffRepresentation = image.tiffRepresentation, let bitmapImage = NSBitmapImageRep(data: tiffRepresentation) else { return }
let png = bitmapImage.representation(using: .png, properties: [:])
do {
try png?.write(to: urlWithName)
if name.contains("tunes") {
try png?.write(to: withFolder.appendingPathComponent(name + ".png"))
try png?.write(to: withFolder.appendingPathComponent(name))
}
} catch let error {
print(error)
Expand Down
4 changes: 2 additions & 2 deletions Resizr/Info.plist
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<string>1.2</string>
<key>CFBundleVersion</key>
<string>4</string>
<string>5</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 17647c5

Please sign in to comment.