Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
abdyfranco committed Apr 7, 2019
2 parents 5070a5d + 527b99c commit c5bea45
Show file tree
Hide file tree
Showing 1,648 changed files with 163,617 additions and 34 deletions.
Binary file added src/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# Set terminal color
printf "\033[1;36;48m" ; clear

# Get current working directory
BASEDIR=$(dirname "$0")

if [ "$BASEDIR" == "." ]; then
BASEDIR=$(pwd)
fi

# Make build dir
echo '=> Make sure you already run the "sudo npm install electron-packager -g" command before.';
rm -rf "$BASEDIR/../build" >/dev/null 2>&1
mkdir -p "$BASEDIR/../build/macOSIFTTTControl" >/dev/null 2>&1

# Build electron app
echo '=> Building electron app...';
rm -rf "$BASEDIR/gui/macOS IFTTT Control-mas-x64" >/dev/null 2>&1
electron-packager "$BASEDIR/gui" "macOS IFTTT Control" --platform=mas --arch=x64 >/dev/null 2>&1
cp -r "$BASEDIR/gui/macOS IFTTT Control-mas-x64/macOS IFTTT Control.app" "$BASEDIR/../build/macOSIFTTTControl" >/dev/null 2>&1
rm -rf "$BASEDIR/gui/macOS IFTTT Control-mas-x64" >/dev/null 2>&1
rm -rf "$BASEDIR/../build/macOSIFTTTControl/macOS IFTTT Control.app/Contents/Resources/electron.icns" >/dev/null 2>&1
cp -r "$BASEDIR/gui/electron.icns" "$BASEDIR/../build/macOSIFTTTControl/macOS IFTTT Control.app/Contents/Resources/" >/dev/null 2>&1

echo '=> Building service...';
cp -r $BASEDIR/macOSIFTTTControl/* "$BASEDIR/../build/macOSIFTTTControl/" >/dev/null 2>&1
$BASEDIR/../build/macOSIFTTTControl/update >/dev/null 2>&1
rm -rf "$BASEDIR/../build/macOSIFTTTControl/update" >/dev/null 2>&1
Loading

0 comments on commit c5bea45

Please sign in to comment.