Skip to content

Commit

Permalink
v0.1alpha4
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Napolitano committed Oct 27, 2016
1 parent 9075ca3 commit aeb8100
Show file tree
Hide file tree
Showing 190 changed files with 1,454 additions and 75 deletions.
17 changes: 7 additions & 10 deletions MooTorrent/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Cocoa
import ServiceManagement

import Sparkle
/* TODO:
preference: Timer
preference: Blacklist
Expand All @@ -13,6 +13,7 @@ class AppDelegate: NSObject,NSApplicationDelegate,NSMenuDelegate{
var preferenceWindowController: PreferenceWindowController!
let statusItem = NSStatusBar.system().statusItem(withLength: NSVariableStatusItemLength)
@IBOutlet weak var contextMenu: NSMenu!
@IBOutlet weak var sparkle: SUUpdater!
func applicationDidFinishLaunching(_ aNotification: Notification) {
let appBundleIdentifier = "org.micmoo.MooTorrentLauncher" as CFString
if !SMLoginItemSetEnabled(appBundleIdentifier, true) {
Expand Down Expand Up @@ -46,7 +47,10 @@ class AppDelegate: NSObject,NSApplicationDelegate,NSMenuDelegate{
let storyboard = NSStoryboard(name: "Main", bundle: nil)
self.preferenceWindowController = storyboard.instantiateController(withIdentifier: "preferenceWindowController") as? PreferenceWindowController
self.preferenceWindowController.setViewsTorrentController(torrentController)

sparkle.automaticallyChecksForUpdates = true
sparkle.automaticallyDownloadsUpdates = true
sparkle.checkForUpdatesInBackground()


}

Expand All @@ -60,22 +64,15 @@ class AppDelegate: NSObject,NSApplicationDelegate,NSMenuDelegate{
}

func showPreferences() {
print("Show Preferences")
print("Show Preferences 4!")
self.preferenceWindowController.showWindow(nil)





}

func quit() {
NSApplication.shared().terminate(self)

}



func menuWillOpen(_ menu: NSMenu) {
print("OPENED!")

Expand Down
12 changes: 12 additions & 0 deletions MooTorrent/Assets.xcassets/dsa_pub.dataset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"data" : [
{
"idiom" : "universal",
"filename" : "dsa_pub.pem"
}
]
}
36 changes: 36 additions & 0 deletions MooTorrent/Assets.xcassets/dsa_pub.dataset/dsa_pub.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
-----BEGIN PUBLIC KEY-----
MIIGOzCCBC4GByqGSM44BAEwggQhAoICAQDbGAnKeFC+T5CKWN8T6Tqiqt9Ul1/e
lRPMYLLFbcLd9qTAAD2mE3myUn9xgOAgcctahVchHyFsThEzYgRCxGoPCvoVPrwF
QWogVXKSoG+/WYGz7y3Q8b2mamwp5AOiacgEm9KubSc+03ulfRt5kFesOyGA/fer
4R4T1vVK/clT+hDEluwTIm5HA16UO2BEga3liBmYpBGe1EvkBW56Out6mUC3GW0p
ICwjPCVYwI4VZb+BWD/Wbepz3HaYLLhZgGk8oCCnXp5vv2JF5TTYmF3d2aAH8LfZ
KgiZP4CqriqT92RqQpf52iFdObHhZSk5L1NGjB58qjmKldWyHMUtPy+fm7vio2BB
+lDTT4PkLIymAchVlYqdtx4cHAzeuvCPdkBXC/mrYBqhma4Yft4yn6xnhBMQfRp3
qpbz8GKmpTWkNnSJNGnCsOIjJiGs/ZM9hSgdE86zIAiLdOa6vCe2f4EZJ4zAsOgQ
i13Z3g1v+5oO9Q5vA7KBIPWVebuhXaU+X8+ckQiNzrx84Cb0wTEpphwxykt5maSf
CqLuFRdTwUK/UJvCpMuQpFNRnpgk2j0WWw01x3rP+fnZeQXSIxmXDVXqnVP6PFVN
iQDJ+Uj5c0lcTrLvnsuhmQivpMZaEI/netiS6Ci/n7edku4Nb2M8YUEeGnuLUO5b
raVrbNP7rpjE3QIVAMyCd+nkHYBLQ77yM4BcNFEMjBxVAoICAQDGA2GHKVi6a3PO
eO9cMSW2AFH6eWUn8F1JlVROUX+9A8nQ4iP330jqRqZg0f7ETE4fUzHZxLqQ8qf3
Xviub22e9oVdzhtxb5d/DhtmkA160KLIhVilxscOJ/GYUgGqlBxh/X4zag+4tg0t
0z2erFbICNnCJ1n4RCpklbyT368HnM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Fc6zQ+HBTZNUvxDGGv78VcKcpsRj8W39Jt/TP3dBONsN5eRKwABcvQou8n+e
AIfp69jQboO0oObDAp/cVU2icglovM+j/qeTGDL3k1maazLXwzNbQgorHoVWAE+m
l5bbEvxAsF6zA0nR3DBH
-----END PUBLIC KEY-----
2 changes: 2 additions & 0 deletions MooTorrent/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="MooTorrent" customModuleProvider="target">
<connections>
<outlet property="contextMenu" destination="Kej-ks-jGi" id="RWW-6m-Rgu"/>
<outlet property="sparkle" destination="AIN-rY-zI7" id="fBD-nk-IzX"/>
</connections>
</customObject>
<customObject id="Ady-hI-5gd" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
Expand All @@ -665,6 +666,7 @@
<outlet property="delegate" destination="Voe-Tx-rLC" id="p8p-94-cAL"/>
</connections>
</menu>
<customObject id="AIN-rY-zI7" customClass="SUUpdater"/>
</objects>
<point key="canvasLocation" x="75" y="0.0"/>
</scene>
Expand Down
6 changes: 5 additions & 1 deletion MooTorrent/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1</string>
<string>0.1alpha4</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
Expand All @@ -35,5 +35,9 @@
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>SUFeedURL</key>
<string>https://mikeynap.github.io/mootorrent/appcast.xml</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ target 'MooTorrent' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'AEXML'
pod 'Sparkle'


# Pods for MooTorrent

Expand Down
5 changes: 4 additions & 1 deletion Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aeb8100

Please sign in to comment.