Skip to content

Commit

Permalink
release dmg to github
Browse files Browse the repository at this point in the history
  • Loading branch information
bit committed Aug 21, 2016
1 parent eee4945 commit 4378891
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@ sudo: required
language: generic

install:
- "./build.sh"
- "./build.sh"

deploy:
provider: releases
api_key:
secure: hF3C7uG83N57UPRxCFKcgkAVDEODvpVTafIdJrjVO9kNXZoFaoRcBApWBC+tZwZAnFOil3XZMciFVVDcvxq8rIX1p41lfVDWfV0L711hIoI1xV+JyKLE44JYlKnVhP9Y+9OvkmDjPgavuqfi/Bujh9aE8BpxkSvrLLDg3ucAbUeFlapfbAOTf+vds5cLxMySJns8zfAFcboGv6+HYCvnXrCPlcdo3v26Hd5DVM80+LgjfGrMnFMtiLNbqJw2r9u887icGGU0UZfOA94RqUV6i081LSuvlEnF2kJo0oGmO54VQMB2y4WrfBOW1ubXxvLLRgnDuV72yIxQmSq89nz3f/WvNSO0pm5UAv+LL3xSOR7MPW+NE3gCC6rbCUJJR/R5+3uxi1y4mcfNpZhHsH0o2aR21vi1E5mcqkS40qoheHO18L2Ppo2FkEDucm1JwjDacMlyiJdtoSJiJZS25q4iGTINhbxTeI19dm0bIKtJ67qAoy+PFI3QX1ENK+eT/+1mShK4SUyAkdXzPCcU38QM0Ywctq+b5eAB6CnipT3n3UcTWOWp50bhdyzKV4TK7GfmpTHw8TKTDbe6qWgHGUV09a6SnQCuikkFIrbJkKDKw4gBdiOxQamYDNNSbfnWbGitY3106dIbrye8XNyIZzLC9qZvVwra785aesDNA4VnVvA=
file: PythonSkeleton.dmg
skip_cleanup: true
on:
tags: true
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# PythonDotApp

[![Build Status](https://travis-ci.org/bit/PythonDotApp.svg?branch=master)](https://travis-ci.org/bit/PythonDotApp)


Skeleton to build Python 3 together with a custom hello world application and package it as OS X Application.

Before you start, install brew.

To install additional packages add them to requirements.txt

If you need more packages from brew you have to edit build.sh


7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,10 @@ test -e test.py && "${NAME}.app/Contents/Python/bin/python3.5" test.py

find "${NAME}.app" -d -name "__pycache__" -type d -exec rm -r "{}" \;
find "${NAME}.app" -name "*.pyc" -exec rm "{}" \;

mkdir dmg
ln -s /Applications "dmg/Applications"
mv "${NAME}.app" dmg/
hdiutil create -srcfolder "dmg" -volname "${NAME}" -format UDZO "${NAME}.tmp.dmg"
hdiutil convert -format UDZO -imagekey zlib-level=9 -o "${NAME}.dmg" "${NAME}.tmp.dmg"
rm "${NAME}.tmp.dmg"

0 comments on commit 4378891

Please sign in to comment.