-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
736 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
Chord Provider/Resources/Assets.xcassets/DiskIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "DiskIcon-16.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "16x16" | ||
}, | ||
{ | ||
"filename" : "DiskIcon-32.png", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "16x16" | ||
}, | ||
{ | ||
"filename" : "DiskIcon-32.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "32x32" | ||
}, | ||
{ | ||
"filename" : "DiskIcon-64.png", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "32x32" | ||
}, | ||
{ | ||
"filename" : "DiskIcon-128.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "128x128" | ||
}, | ||
{ | ||
"filename" : "DiskIcon-256.png", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "128x128" | ||
}, | ||
{ | ||
"filename" : "DiskIcon-256.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "256x256" | ||
}, | ||
{ | ||
"filename" : "DiskIcon-512.png", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "256x256" | ||
}, | ||
{ | ||
"filename" : "DiskIcon-512.png", | ||
"idiom" : "mac", | ||
"scale" : "1x", | ||
"size" : "512x512" | ||
}, | ||
{ | ||
"filename" : "DiskIcon-1024.png", | ||
"idiom" : "mac", | ||
"scale" : "2x", | ||
"size" : "512x512" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+962 KB
Chord Provider/Resources/Assets.xcassets/DiskIcon.appiconset/DiskIcon-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17 KB
Chord Provider/Resources/Assets.xcassets/DiskIcon.appiconset/DiskIcon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.75 KB
Chord Provider/Resources/Assets.xcassets/DiskIcon.appiconset/DiskIcon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.9 KB
Chord Provider/Resources/Assets.xcassets/DiskIcon.appiconset/DiskIcon-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.9 KB
Chord Provider/Resources/Assets.xcassets/DiskIcon.appiconset/DiskIcon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+234 KB
Chord Provider/Resources/Assets.xcassets/DiskIcon.appiconset/DiskIcon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.21 KB
Chord Provider/Resources/Assets.xcassets/DiskIcon.appiconset/DiskIcon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
CURRDATE := $(shell date "+%Y-%m-%d") | ||
TESTBUILDDIR := TestBuild | ||
DMGNAME := Chord Provider macOS ${CURRDATE}.dmg | ||
VERSION = $(shell xcodebuild -showBuildSettings | grep MARKETING_VERSION | tr -d 'MARKETING_VERSION =') | ||
DMGNAME := Chord Provider ${VERSION}.dmg | ||
MKDIR := mkdir | ||
|
||
DEST := build | ||
DEST := Build | ||
|
||
all: archive | ||
APPDIR := "${DEST}/Chord Provider.app" | ||
|
||
xcodebuild: | ||
@echo "Building Chord Provider" | ||
rm -fr "${DEST}" | ||
$(MKDIR) -p "${DEST}" | ||
xcodebuild \ | ||
-scheme "Chord Provider" \ | ||
-configuration Release \ | ||
-arch x86_64 \ | ||
CODE_SIGN_IDENTITY="-" \ | ||
CODE_SIGNING_REQUIRED=YES \ | ||
-derivedDataPath "${DEST}" | ||
|
||
archive: xcodebuild | ||
@echo "Archive Chord Provider" | ||
$(MKDIR) -p "${DEST}/Chord Provider" | ||
cp -r "${DEST}/Build/Products/Release/Chord Provider.app" "${DEST}/Chord Provider" | ||
rm -f "${DEST}/${DMGNAME}" | ||
hdiutil create -format UDZO -srcfolder "${DEST}/Chord Provider" "${DEST}/${DMGNAME}" | ||
all: package | ||
|
||
clean: | ||
rm -fr ${DEST} | ||
rm -fr ${DEST} | ||
|
||
package: | ||
rm -f "Build/${DMGNAME}" | ||
bash ./Resources/create-dmg \ | ||
--volname "Chord Provider" \ | ||
--volicon "Resources/DiskIcon.icns" \ | ||
--window-pos 200 120 \ | ||
--window-size 680 440 \ | ||
--icon-size 64 \ | ||
--icon "Chord Provider.app" 540 75 \ | ||
--hide-extension "Chord Provider.app" \ | ||
--add-file "Read me First.html" "Resources/README.html" 540 175 \ | ||
--hide-extension "Read me First.html" \ | ||
--add-file "Install.zsh" "Resources/Install.zsh" 540 275 \ | ||
--hide-extension "Install.zsh" \ | ||
--background "Resources/DiskBackground.png" \ | ||
"Build/${DMGNAME}" ${APPDIR} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/zsh | ||
|
||
####################################################### | ||
# # | ||
# Install Chord Provider on macOS # | ||
# # | ||
# For security reasons; this script is not executable # | ||
# by double-clicking on it. # | ||
# # | ||
# To run it, you have to drop it into a Terminal # | ||
# window or drop it onto its icon. # | ||
# # | ||
####################################################### | ||
|
||
## Nice colours | ||
|
||
GREEN="\e[38;5;35m" | ||
|
||
BLUE="\e[1m\e[38;5;27m" | ||
|
||
RESET="\e[0m" | ||
|
||
APPLICATION="\e[1m$GREEN""Chord Provider""$RESET" | ||
|
||
# We need administration access to run this script | ||
if [ $(id -u) != 0 ]; then | ||
echo "\n$BLUE""This install script requires administration permission to install $APPLICATION$RESET" | ||
echo " | ||
It will do the following: | ||
- Copy $APPLICATION to your applications folder | ||
- Move $APPLICATION out of quarantine | ||
" | ||
echo "\e[1m""Use it at your own risk...$RESET\n" | ||
sudo "$0" "$@" | ||
exit | ||
fi | ||
|
||
echo "\nCopy $APPLICATION to your Applications folder..." | ||
|
||
rm -fr "/Applications/Chord Provider.app" | ||
|
||
cp -R "${0:a:h}/ChordPro.app" /Applications/ | ||
|
||
echo "Remove the quarantine flag..." | ||
|
||
xattr -rd com.apple.quarantine /Applications/ChordPro.app | ||
|
||
echo "\n$BLUE""Done!$RESET\n\nEnjoy $APPLICATION on your Mac!\n" | ||
|
Oops, something went wrong.