Skip to content

Commit

Permalink
Update name in build files
Browse files Browse the repository at this point in the history
  • Loading branch information
dabbott committed Nov 20, 2017
1 parent 9758e96 commit 00c07c7
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Podfile
Expand Up @@ -5,7 +5,7 @@ target 'LonaStudio' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for ComponentStudio
# Pods for LonaStudio
pod 'Yoga', '~> 1.6'
pod 'SwiftyJSON'
pod 'MASPreferences', '~> 1.1'
Expand Down
Binary file removed dmg/ComponentStudioIcon.icns
Binary file not shown.
12 changes: 6 additions & 6 deletions dmg/appcast.sh
@@ -1,9 +1,9 @@
if ! [ -e ComponentStudio.app ]; then
echo "Put the archived app, ComponentStudio.app, in this directory to update the appcast."
if ! [ -e LonaStudio.app ]; then
echo "Put the archived app, LonaStudio.app, in this directory to update the appcast."
exit 1
fi

if ! [ -e ComponentStudio.zip ]; then
if ! [ -e LonaStudio.zip ]; then
echo "You must first build a zip in order to appcast."
exit 1
fi
Expand All @@ -18,12 +18,12 @@ if [[ -z "${COMPONENT_STUDIO_APPCAST_DIRECTORY}" ]]; then
exit 1
fi

VERSION=$(mdls -name kMDItemVersion ComponentStudio.app | awk -F'"' '{print $2}')
TARGET="$COMPONENT_STUDIO_APPCAST_DIRECTORY"ComponentStudio_"$VERSION".zip
VERSION=$(mdls -name kMDItemVersion LonaStudio.app | awk -F'"' '{print $2}')
TARGET="$COMPONENT_STUDIO_APPCAST_DIRECTORY"LonaStudio_"$VERSION".zip

echo "Copying .zip to $TARGET"

cp ComponentStudio.zip "$TARGET"
cp LonaStudio.zip "$TARGET"

echo "Generating appcast"

Expand Down
6 changes: 3 additions & 3 deletions dmg/appdmg.json
@@ -1,13 +1,13 @@
{
"title": "Component Studio",
"icon": "ComponentStudioIcon.icns",
"title": "Lona Studio",
"icon": "LonaStudioIcon.icns",
"background": "background.png",
"contents": [
{
"x": 158,
"y": 185,
"type": "file",
"path": "ComponentStudio.app"
"path": "LonaStudio.app"
},
{
"x": 447,
Expand Down
10 changes: 5 additions & 5 deletions dmg/build-dmg.sh
@@ -1,12 +1,12 @@
[ -e ComponentStudio.dmg ] && rm ComponentStudio.dmg
[ -e LonaStudio.dmg ] && rm LonaStudio.dmg

if ! [ -e ComponentStudio.app ]; then
echo "Put the archived app, ComponentStudio.app, in this directory to build a dmg."
if ! [ -e LonaStudio.app ]; then
echo "Put the archived app, LonaStudio.app, in this directory to build a dmg."
exit 1
fi

# npm install -g appdmg
appdmg appdmg.json ComponentStudio.dmg
appdmg appdmg.json LonaStudio.dmg

# https://stackoverflow.com/questions/23824815/how-to-add-codesigning-to-dmg-file-in-mac
codesign -s "Developer ID Application: Devin Abbott (CV2RHZWPY9)" ComponentStudio.dmg
codesign -s "Developer ID Application: Devin Abbott (CV2RHZWPY9)" LonaStudio.dmg
8 changes: 4 additions & 4 deletions dmg/build-zip.sh
@@ -1,11 +1,11 @@
[ -e ComponentStudio.zip ] && rm ComponentStudio.zip
[ -e LonaStudio.zip ] && rm LonaStudio.zip

if ! [ -e ComponentStudio.app ]; then
echo "Put the archived app, ComponentStudio.app, in this directory to build a zip."
if ! [ -e LonaStudio.app ]; then
echo "Put the archived app, LonaStudio.app, in this directory to build a zip."
exit 1
fi

# zip it while preserving metadata
# https://github.com/sparkle-project/Sparkle/issues/433
# https://github.com/electron/electron/issues/905
ditto -c -k --sequesterRsrc --keepParent ComponentStudio.app ComponentStudio.zip
ditto -c -k --sequesterRsrc --keepParent LonaStudio.app LonaStudio.zip
8 changes: 4 additions & 4 deletions dmg/convert-icon.sh
@@ -1,7 +1,7 @@
mkdir ComponentStudioIcon.iconset
mkdir LonaStudioIcon.iconset

cp ../ComponentStudio/Assets.xcassets/AppIcon.appiconset/*.png ComponentStudioIcon.iconset
cp ../LonaStudio/Assets.xcassets/AppIcon.appiconset/*.png LonaStudioIcon.iconset

iconutil -c icns ComponentStudioIcon.iconset -o ComponentStudioIcon.icns
iconutil -c icns LonaStudioIcon.iconset -o LonaStudioIcon.icns

rm -R ComponentStudioIcon.iconset
rm -R LonaStudioIcon.iconset

0 comments on commit 00c07c7

Please sign in to comment.