Skip to content

Commit 959c824

Browse files
committed
Release version v1.6.1
2 parents 9cae12a + b31452e commit 959c824

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ShadowsocksX-NG
22

3-
Current version is 1.6.0
3+
Current version is 1.6.1
44

55
[![Build Status](https://travis-ci.org/shadowsocks/ShadowsocksX-NG.svg?branch=develop)](https://travis-ci.org/shadowsocks/ShadowsocksX-NG)
66

@@ -63,8 +63,6 @@ so that you could configure your apps to use the SOCKS5 proxy manually.
6363

6464
## Contributing
6565

66-
[![gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ShadowsocksX-NG/Lobby)
67-
6866
Contributions must be available on a separately named branch based on the latest version of the main branch `develop`.
6967

7068
ref: [GitFlow](http://nvie.com/posts/a-successful-git-branching-model/)

ShadowsocksX-NG/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
5757
if attrs[FileAttributeKey.ownerAccountName] as! String != NSUserName() {
5858
//try fileMgr.setAttributes([FileAttributeKey.ownerAccountName: NSUserName()], ofItemAtPath: dirPath)
5959
let bashFilePath = Bundle.main.path(forResource: "fix_dir_owner.sh", ofType: nil)!
60-
let script = "do shell script \"bash \(bashFilePath) \(NSUserName()) \" with administrator privileges"
60+
let script = "do shell script \"bash \\\"(bashFilePath)\\\" \(NSUserName()) \" with administrator privileges"
6161
if let appleScript = NSAppleScript(source: script) {
6262
var err: NSDictionary? = nil
6363
appleScript.executeAndReturnError(&err)

ShadowsocksX-NG/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.6.0</string>
20+
<string>1.6.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleURLTypes</key>

ShadowsocksX-NG/ProxyConfHelper.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ + (void)install {
5151
NSString *helperPath = [NSString stringWithFormat:@"%@/%@", [[NSBundle mainBundle] resourcePath], @"install_helper.sh"];
5252
NSLog(@"run install script: %@", helperPath);
5353
NSDictionary *error;
54-
NSString *script = [NSString stringWithFormat:@"do shell script \"bash %@\" with administrator privileges", helperPath];
54+
NSString *script = [NSString stringWithFormat:@"do shell script \"/bin/bash \\\"%@\\\"\" with administrator privileges", helperPath];
5555
NSAppleScript *appleScript = [[NSAppleScript new] initWithSource:script];
5656
if ([appleScript executeAndReturnError:&error]) {
5757
NSLog(@"installation success");
5858
} else {
59-
NSLog(@"installation failure");
59+
NSLog(@"installation failure: %@", error);
6060
}
6161
}
6262
}

ShadowsocksX-NG/SWBQRCodeWindowController.m

+4-9
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ - (void)windowDidLoad {
1919
[super windowDidLoad];
2020

2121
// Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
22-
[self setQRCode:self.qrCode withOverlayText:@"Shadowsocks-NG SIP002"];
22+
[self setQRCode:self.qrCode withOverlayText:@"SIP002"];
2323
}
2424

2525
- (void)setQRCode:(NSString*) qrCode withOverlayText: (NSString*) text {
@@ -35,14 +35,9 @@ - (void)setQRCode:(NSString*) qrCode withOverlayText: (NSString*) text {
3535
};
3636
NSMutableAttributedString* attrsText = [[NSMutableAttributedString alloc] initWithString: text
3737
attributes: attrs];
38-
[attrsText setAttributes:@{
39-
NSForegroundColorAttributeName: [NSColor darkGrayColor],
40-
NSBackgroundColorAttributeName: [NSColor whiteColor],
41-
NSFontAttributeName: [NSFont fontWithName:@"Helvetica" size:(CGFloat)16],
42-
} range: NSMakeRange(0, 14)];
4338

4439
[image lockFocus];
45-
[attrsText drawAtPoint: NSMakePoint(45, 8)];
40+
[attrsText drawAtPoint: NSMakePoint(100, 5)];
4641
[image unlockFocus];
4742
}
4843
self.imageView.image = image;
@@ -108,9 +103,9 @@ - (IBAction) copyQRCode: (id) sender{
108103
- (void)flagsChanged:(NSEvent *)event {
109104
NSUInteger modifiers = event.modifierFlags & NSDeviceIndependentModifierFlagsMask;
110105
if (modifiers & NSAlternateKeyMask) {
111-
[self setQRCode:self.legacyQRCode withOverlayText:@"Shadowsocks-NG Legacy"];
106+
[self setQRCode:self.legacyQRCode withOverlayText:@"Legacy"];
112107
} else {
113-
[self setQRCode:self.qrCode withOverlayText:@"Shadowsocks-NG SIP002"];
108+
[self setQRCode:self.qrCode withOverlayText:@"SIP002"];
114109
}
115110
}
116111

0 commit comments

Comments
 (0)