Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
shincurry committed Nov 1, 2016
1 parent 088b6f1 commit 0bc70a2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Maria Widget/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.1.3</string>
<string>1.2</string>
<key>CFBundleVersion</key>
<string>1610174</string>
<string>1611016</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>
Expand Down
9 changes: 4 additions & 5 deletions Maria/Aria.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Aria {
static let shared = Aria()

private init() {
initRPC()
initCore()
initRPC()
}

private func initRPC() {
Expand All @@ -38,16 +38,15 @@ class Aria {
if !FileManager.default.fileExists(atPath: session) {
FileManager.default.createFile(atPath: session, contents: nil, attributes: nil)
}
defaults.set("6789", forKey: "RPCServerPort")
defaults.set("maria.rpc.2016", forKey: "RPCServerSecret")
MariaUserDefault.initBuiltIn()
defaults.set(conf, forKey: "Aria2ConfPath")
} catch {
print(error)
}
}

if let path = Bundle.main.path(forResource: "aria2", ofType: "conf") {
let config = AriaConfig(filePath: path)
if Bundle.main.load() {
let config = AriaConfig(filePath: conf)
config.load()
config.data.append(("dir", "\(NSHomeDirectory())/Downloads"))
config.data.append(("input-file", "\(Bundle.main.resourcePath!)/aria2.session"))
Expand Down
4 changes: 2 additions & 2 deletions Maria/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.3</string>
<string>1.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1610174</string>
<string>1611016</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

An OS X app/widget for aria2 download tool.

You can see Maria dev plan [here](https://github.com/ShinCurry/Maria/projects/1).
You can see dev plan [here](https://github.com/ShinCurry/Maria/projects/1).

More details in [Wiki](https://github.com/ShinCurry/Maria/wiki).

#### Main Window

![Maria App](https://obhajdt0c.qnssl.com/Maria/App-2.png)
![Maria App](https://obhajdt0c.qnssl.com/Maria/App-3.png)

#### Today Widget

Expand All @@ -19,15 +21,17 @@ You can see Maria dev plan [here](https://github.com/ShinCurry/Maria/projects/1)
## Features

* Native App
* Aria2 Integrated
* System Notification Support
* Today Widget Support
* Touch Bar Support


## Test Environment

* Xcode 8 (8A218a)
* Xcode 8.1 (8B62)
* Swift 3
* macOS Sierra (16A319)
* macOS Sierra 10.12.1 (16B2657)
* CocoaPods 1.1.0.beta.2

## Thanks
Expand All @@ -38,8 +42,8 @@ You can see Maria dev plan [here](https://github.com/ShinCurry/Maria/projects/1)

#### Special Thanks

* @BlueCocoa
* @Lencerf
* [@BlueCocoa](https://github.com/BlueCocoa)
* [@Lencerf](https://github.com/Lencerf)

## License

Expand Down

0 comments on commit 0bc70a2

Please sign in to comment.