Skip to content

Commit 4378891

Browse files
committed
release dmg to github
1 parent eee4945 commit 4378891

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@ sudo: required
33
language: generic
44

55
install:
6-
- "./build.sh"
6+
- "./build.sh"
7+
8+
deploy:
9+
provider: releases
10+
api_key:
11+
secure: hF3C7uG83N57UPRxCFKcgkAVDEODvpVTafIdJrjVO9kNXZoFaoRcBApWBC+tZwZAnFOil3XZMciFVVDcvxq8rIX1p41lfVDWfV0L711hIoI1xV+JyKLE44JYlKnVhP9Y+9OvkmDjPgavuqfi/Bujh9aE8BpxkSvrLLDg3ucAbUeFlapfbAOTf+vds5cLxMySJns8zfAFcboGv6+HYCvnXrCPlcdo3v26Hd5DVM80+LgjfGrMnFMtiLNbqJw2r9u887icGGU0UZfOA94RqUV6i081LSuvlEnF2kJo0oGmO54VQMB2y4WrfBOW1ubXxvLLRgnDuV72yIxQmSq89nz3f/WvNSO0pm5UAv+LL3xSOR7MPW+NE3gCC6rbCUJJR/R5+3uxi1y4mcfNpZhHsH0o2aR21vi1E5mcqkS40qoheHO18L2Ppo2FkEDucm1JwjDacMlyiJdtoSJiJZS25q4iGTINhbxTeI19dm0bIKtJ67qAoy+PFI3QX1ENK+eT/+1mShK4SUyAkdXzPCcU38QM0Ywctq+b5eAB6CnipT3n3UcTWOWp50bhdyzKV4TK7GfmpTHw8TKTDbe6qWgHGUV09a6SnQCuikkFIrbJkKDKw4gBdiOxQamYDNNSbfnWbGitY3106dIbrye8XNyIZzLC9qZvVwra785aesDNA4VnVvA=
12+
file: PythonSkeleton.dmg
13+
skip_cleanup: true
14+
on:
15+
tags: true

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# PythonDotApp
22

3+
[![Build Status](https://travis-ci.org/bit/PythonDotApp.svg?branch=master)](https://travis-ci.org/bit/PythonDotApp)
4+
5+
36
Skeleton to build Python 3 together with a custom hello world application and package it as OS X Application.
47

58
Before you start, install brew.
69

710
To install additional packages add them to requirements.txt
811

912
If you need more packages from brew you have to edit build.sh
13+
14+

build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,10 @@ test -e test.py && "${NAME}.app/Contents/Python/bin/python3.5" test.py
218218

219219
find "${NAME}.app" -d -name "__pycache__" -type d -exec rm -r "{}" \;
220220
find "${NAME}.app" -name "*.pyc" -exec rm "{}" \;
221+
222+
mkdir dmg
223+
ln -s /Applications "dmg/Applications"
224+
mv "${NAME}.app" dmg/
225+
hdiutil create -srcfolder "dmg" -volname "${NAME}" -format UDZO "${NAME}.tmp.dmg"
226+
hdiutil convert -format UDZO -imagekey zlib-level=9 -o "${NAME}.dmg" "${NAME}.tmp.dmg"
227+
rm "${NAME}.tmp.dmg"

0 commit comments

Comments
 (0)