Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hrbrmstr committed Aug 22, 2019
1 parent 3a3385c commit 630ef3e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
20 changes: 13 additions & 7 deletions RSwitch/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
@objc func download_latest_rstudio(_ sender: NSMenuItem?) {

let url = URL(string: "https://dailies.rstudio.com/rstudio/oss/mac/")

do {
let html = try String.init(contentsOf: url!)
let document = try SwiftSoup.parse(html)
Expand All @@ -142,23 +143,25 @@ class AppDelegate: NSObject, NSApplicationDelegate {

try FileManager.default.copyItem(at: tempURL, to: dlfile)
NSWorkspace.shared.openFile(dldir.path, withApplication: "Finder")

DispatchQueue.main.async { infoAlert("Download of latest RStudio daily successful.") }

} catch {
//infoAlert("Error downloading and saving file.")
DispatchQueue.main.async { infoAlert("Error downloading and saving latest RStudio daily.") }
}

} else {
// infoAlert("File not found.")
DispatchQueue.main.async { infoAlert("Latest RStudio daily not found.") }
}
} else {
//infoAlert("Error downloading file.")
DispatchQueue.main.async { infoAlert("Error downloading latest RStudio daily.") }
}
}

task.resume()

} catch {
// error
DispatchQueue.main.async { infoAlert("Error downloading latrest RStudio daily.") }
}

}
Expand All @@ -179,16 +182,19 @@ class AppDelegate: NSObject, NSApplicationDelegate {

try FileManager.default.copyItem(at: tempURL, to: dlfile)
NSWorkspace.shared.openFile(dldir.path, withApplication: "Finder")

DispatchQueue.main.async { infoAlert("Download of latest r-devel successful.") }


} catch {
//infoAlert("Error downloading and saving file.")
DispatchQueue.main.async { infoAlert("Error downloading and saving latest r-devel .") }
}

} else {
// infoAlert("File not found.")
DispatchQueue.main.async { infoAlert("Latest r-devel file not found.") }
}
} else {
//infoAlert("Error downloading file.")
DispatchQueue.main.async { infoAlert("Error downloading latest r-devel .") }
}
}

Expand Down
10 changes: 5 additions & 5 deletions RSwitch/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -734,29 +734,29 @@
<textView ambiguous="YES" editable="NO" drawsBackground="NO" importsGraphics="NO" verticallyResizable="YES" smartInsertDelete="YES" id="kWH-Et-k6l">
<rect key="frame" x="0.0" y="0.0" width="463" height="223"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="textColor" name="alternateSelectedControlTextColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="alternatingContentBackgroundColor" catalog="System" colorSpace="catalog"/>
<size key="minSize" width="463" height="223"/>
<size key="maxSize" width="463" height="10000000"/>
<attributedString key="textStorage">
<fragment>
<string key="content">
RSwitch v1.1.0
RSwitch v1.2.0

Copyright © 2019 Bob Rudis

MIT Licensed

</string>
<attributes>
<color key="NSColor" name="alternateSelectedControlTextColor" catalog="System" colorSpace="catalog"/>
<color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" metaFont="system" size="17"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
<fragment content="https://git.rud.is/hrbrmstr/RSwitch">
<attributes>
<color key="NSColor" name="alternateSelectedControlTextColor" catalog="System" colorSpace="catalog"/>
<color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" metaFont="system" size="17"/>
<url key="NSLink" string="https://git.rud.is/hrbrmstr/RSwitch"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
Expand All @@ -768,7 +768,7 @@ MIT Licensed
dial app icon by IconMark from the Noun Project
</string>
<attributes>
<color key="NSColor" name="alternateSelectedControlTextColor" catalog="System" colorSpace="catalog"/>
<color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/>
<font key="NSFont" metaFont="system" size="17"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
Expand Down
Binary file added releases/RSwitch-1.2.0.app.zip
Binary file not shown.
Binary file modified rswitch-menu-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 630ef3e

Please sign in to comment.