Skip to content

Commit

Permalink
Don't open terminal on mac when app starts
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-tsurko committed Dec 3, 2019
1 parent 13286e9 commit df38ab9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CD

env:
CELLS_VERSION: 1.0.0-beta1
CELLS_VERSION: 1.0.0-beta2
CELLS_REVISION_NUMBER: 1

on:
Expand Down
2 changes: 1 addition & 1 deletion cells/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class ApplicationInfo:
name = "Cells"
author = "Ales Tsurko"
version = "1.0.0-beta1"
version = "1.0.0-beta2"


class Settings(Observation, dict):
Expand Down
5 changes: 1 addition & 4 deletions packaging/macos/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ echo "Making app structure"
mkdir -p $APPDIR
mkdir -p $APPRESOURCES

# pyinstaller packaging/Cells.spec -y

echo "Copying sources"
cp -R cells $APPDIR

Expand All @@ -37,15 +35,14 @@ echo "Copying icons"
cp packaging/macos/*.icns $APPRESOURCES/

echo "Copying executable scripts"
cp packaging/macos/runner $APPDIR
cp packaging/macos/run $APPDIR

echo "Writing defaults"
defaults write $PWD/$APP/Contents/Info.plist CFBundleName -string Cells
defaults write $PWD/$APP/Contents/Info.plist CFBundleDisplayName -string Cells
defaults write $PWD/$APP/Contents/Info.plist CFBundleIdentifier -string by.alestsurko.cells
defaults write $PWD/$APP/Contents/Info.plist CFBundleVersion -string "1.0.0"
defaults write $PWD/$APP/Contents/Info.plist CFBundleExecutable -string runner
defaults write $PWD/$APP/Contents/Info.plist CFBundleExecutable -string run
defaults write $PWD/$APP/Contents/Info.plist NSPrincipalClass -string NSApplication
defaults write $PWD/$APP/Contents/Info.plist CFBundleIconFile -string "AppIcon"
plutil -insert CFBundleDocumentTypes -json '[{
Expand Down
2 changes: 2 additions & 0 deletions packaging/macos/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

. ~/.bash_profile

cd $(dirname "$0")

export PYTHONPATH="$(pwd)/python/lib/python3.7/site-packages"
Expand Down
6 changes: 0 additions & 6 deletions packaging/macos/runner

This file was deleted.

0 comments on commit df38ab9

Please sign in to comment.