Skip to content

Commit d7f1d1f

Browse files
committed
added automatic check for updates button
1 parent 9bb2965 commit d7f1d1f

File tree

5 files changed

+35
-16
lines changed

5 files changed

+35
-16
lines changed

nonky.xcodeproj/project.pbxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
);
361361
runOnlyForDeploymentPostprocessing = 0;
362362
shellPath = /bin/sh;
363-
shellScript = "echo \"npm installing...\"\ncd nonkyserver\nnpm install\necho \"node pkg installing...\"\nnpm install -g pkg\necho \"replacing the missbehaving nowplaying lib..\"\ncp node_modules/nowplaying/index.js node_modules/nowplaying/tmp.js\nsed -e \"s~__dirname~process.env.HOME+'/Library/Application Support/nonky/public'~\" < node_modules/nowplaying/tmp.js > node_modules/nowplaying/index.js\nrm node_modules/nowplaying/tmp.js\necho \"copy the native smc to the project folder\"\ncp node_modules/smc/build/Release/smc.node ../nonky/Supporting\\ Files\necho \"copy the native smc to the project folder\"\ncp node_modules/corelocation/build/Release/node_corelocation.node ../nonky/Supporting\\ Files\necho \"cpoying playerinfo.rb\"\ncp node_modules/nowplaying/playerinfo.rb ../nonky/Supporting\\ Files\necho \"pkging node server..\"\npkg --targets macos nonky-server.js\ncp nonky-server ../nonky/Supporting\\ Files";
363+
shellScript = "echo \"npm installing...\"\ncd nonkyserver\nnpm install\necho \"node pkg installing...\"\nnpm install -g pkg\necho \"replacing the missbehaving nowplaying lib..\"\ncp node_modules/nowplaying/index.js node_modules/nowplaying/tmp.js\nsed -e \"s~__dirname~process.env.HOME+'/Library/Application Support/nonky/public'~\" < node_modules/nowplaying/tmp.js > node_modules/nowplaying/index.js\nrm node_modules/nowplaying/tmp.js\necho \"copy the native smc to the project folder\"\ncp node_modules/smc/build/Release/smc.node ../nonky/Supporting\\ Files\necho \"copy the native corelocation to the project folder\"\ncp node_modules/corelocation/build/Release/node_corelocation.node ../nonky/Supporting\\ Files\necho \"cpoying playerinfo.rb\"\ncp node_modules/nowplaying/playerinfo.rb ../nonky/Supporting\\ Files\necho \"pkging node server..\"\npkg --targets macos nonky-server.js\ncp nonky-server ../nonky/Supporting\\ Files";
364364
};
365365
/* End PBXShellScriptBuildPhase section */
366366

nonky/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundlePackageType</key>
2020
<string>APPL</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>0.0.2</string>
22+
<string>0.0.3</string>
2323
<key>CFBundleVersion</key>
2424
<string>1</string>
2525
<key>LSBackgroundOnly</key>

nonky/Preferences.xib

+24-5
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
<window title="Preferences" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g">
1717
<windowStyleMask key="styleMask" titled="YES" closable="YES"/>
1818
<windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/>
19-
<rect key="contentRect" x="529" y="471" width="214" height="102"/>
19+
<rect key="contentRect" x="529" y="471" width="263" height="135"/>
2020
<rect key="screenRect" x="0.0" y="0.0" width="1280" height="777"/>
2121
<view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ">
22-
<rect key="frame" x="0.0" y="0.0" width="214" height="102"/>
22+
<rect key="frame" x="0.0" y="0.0" width="263" height="135"/>
2323
<autoresizingMask key="autoresizingMask"/>
2424
<subviews>
2525
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vxH-07-fnj">
26-
<rect key="frame" x="18" y="59" width="178" height="25"/>
26+
<rect key="frame" x="18" y="92" width="178" height="25"/>
2727
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
2828
<buttonCell key="cell" type="check" title="Launch nonky at login" bezelStyle="regularSquare" imagePosition="left" inset="2" id="jed-wG-nR4">
2929
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -33,8 +33,25 @@
3333
<action selector="toggleLaunchAtStartup:" target="-2" id="TnB-vq-2I3"/>
3434
</connections>
3535
</button>
36+
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="EAC-TO-PHB">
37+
<rect key="frame" x="18" y="52" width="217" height="32"/>
38+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
39+
<buttonCell key="cell" type="check" title="Automatically check for updates" bezelStyle="regularSquare" imagePosition="left" inset="2" id="Lqr-NK-LIj">
40+
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
41+
<font key="font" metaFont="system"/>
42+
<connections>
43+
<binding destination="q6A-6g-7SK" name="value" keyPath="automaticallyChecksForUpdates" id="Zk9-ky-Lfg">
44+
<dictionary key="options">
45+
<bool key="NSConditionallySetsEditable" value="YES"/>
46+
<bool key="NSConditionallySetsEnabled" value="NO"/>
47+
</dictionary>
48+
</binding>
49+
<outlet property="representedObject" destination="q6A-6g-7SK" id="rLa-gO-ZpP"/>
50+
</connections>
51+
</buttonCell>
52+
</button>
3653
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="VbC-u7-hGs">
37-
<rect key="frame" x="42" y="13" width="129" height="32"/>
54+
<rect key="frame" x="14" y="13" width="129" height="32"/>
3855
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
3956
<buttonCell key="cell" type="push" title="Reset Defaults" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="GFD-Bp-0yC">
4057
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -49,8 +66,10 @@
4966
<connections>
5067
<outlet property="delegate" destination="-2" id="nTf-AQ-e4c"/>
5168
</connections>
52-
<point key="canvasLocation" x="123" y="69"/>
69+
<point key="canvasLocation" x="147.5" y="85.5"/>
5370
</window>
5471
<customObject id="SRj-g0-tgh"/>
72+
<customObject id="q6A-6g-7SK" customClass="SUUpdater"/>
73+
<userDefaultsController representsSharedInstance="YES" id="cYz-37-2aT"/>
5574
</objects>
5675
</document>
48 Bytes
Binary file not shown.

nonkyserver/package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)