mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 00:19:27 +02:00
Improved support for building release on mac
This commit is contained in:
parent
73d5f90578
commit
0d5cb77e3d
@ -8,8 +8,7 @@ addons:
|
|||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -y libwxgtk3.0-dev libgtk2.0-dev
|
- sudo apt-get install -y libwxgtk3.0-dev libgtk2.0-dev
|
||||||
- git show -s --format="wxT(\"<a href=\\\"http://github.com/audacity/audacity/commit/%H\\\">%h</a> of %cd\")"
|
- git show -s --format="wxT(\"[[http://github.com/audacity/audacity/commit/%H|%h]] of %cd\")" | tee ./src/RevisionIdent.h
|
||||||
- git show -s --format="wxT(\"<a href=\\\"http://github.com/audacity/audacity/commit/%H\\\">%h</a> of %cd\")" > ./src/RevisionIdent.h
|
|
||||||
- export CXX="g++-4.9" CC="gcc-4.9"
|
- export CXX="g++-4.9" CC="gcc-4.9"
|
||||||
- FLAGS="-w -std=gnu++11"
|
- FLAGS="-w -std=gnu++11"
|
||||||
- export CFLAGS="$CFLAGS $FLAGS"
|
- export CFLAGS="$CFLAGS $FLAGS"
|
||||||
|
@ -2,13 +2,14 @@ At this time, the newest SDK version that Audacity can build with is 10.6.
|
|||||||
To build Audacity using Xcode 5.1 or newer, you need to extract the 10.6 SDK
|
To build Audacity using Xcode 5.1 or newer, you need to extract the 10.6 SDK
|
||||||
from an earlier version of Xcode.
|
from an earlier version of Xcode.
|
||||||
|
|
||||||
In the instructions below, Xcode 4.3.3 (for the 10.6 SDK) and Xcode 5.1.1 will
|
In the instructions below, Xcode 4.3.3 (for the 10.6 SDK) and Xcode 8.1 will
|
||||||
be used. Xcode 6.1.1, 6.3, 6.4.1, and 7.1 have also been verified to work.
|
be used. Fuller instructions that cover
|
||||||
Xcode 7.2 and later require a custom build setting to accept the 10.6 SDK, or
|
* Using other Xcodes (e.g. to build on platforms prior to OS X 10.11.5)
|
||||||
to edit src\MemoryX.h in the Audacity code. See this topic:
|
* Optional signing of DMGs
|
||||||
http://forum.audacityteam.org/viewtopic.php?p=303835#p303835 .
|
* Applying wxWidgets patches one by one
|
||||||
|
can be found on our wiki at http://wiki.audacityteam.org/wiki/Building_On_Mac
|
||||||
|
|
||||||
1) Download Xcode 5.1.1 or greater and install it to /Applications.
|
1) Download Xcode 8.1 and install it to /Applications.
|
||||||
2) Download Xcode 4.3.3 (it includes the 10.6 and 10.7 SDK's despite
|
2) Download Xcode 4.3.3 (it includes the 10.6 and 10.7 SDK's despite
|
||||||
the downloads page says it only has the 10.7 SDK).
|
the downloads page says it only has the 10.7 SDK).
|
||||||
3) Open the DMG in Finder.
|
3) Open the DMG in Finder.
|
||||||
@ -21,28 +22,24 @@ http://forum.audacityteam.org/viewtopic.php?p=303835#p303835 .
|
|||||||
|
|
||||||
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
|
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
|
||||||
|
|
||||||
|
7) Change the MinimumSDKVersion key value in
|
||||||
|
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
|
||||||
|
to 10.6
|
||||||
|
|
||||||
Xcode is now ready.
|
Xcode is now ready.
|
||||||
|
|
||||||
7) Download wxWidgets 3.0.2 fron the wxWidgets project:
|
8) Download audacity patched wxWidgets 3.0.2 zip from the audacity copy of the
|
||||||
http://sourceforge.net/projects/wxwindows/files/3.0.2/wxWidgets-3.0.2.tar.bz2 .
|
wxWidgets project:
|
||||||
|
https://github.com/audacity/wxWidgets/tree/audacity-fixes
|
||||||
|
|
||||||
|
it's the green "clone or download" button on the right.
|
||||||
|
|
||||||
Don't be tempted to use Widgets already installed by a package manager such
|
Don't be tempted to use Widgets already installed by a package manager such
|
||||||
as Homebrew because this may cause problems.
|
as Homebrew because this will cause problems.
|
||||||
|
|
||||||
8) Once the download is complete, untar it (your browser may do this itelf):
|
9) Once the download is complete, unzip it:
|
||||||
|
|
||||||
tar xf wxWidgets-3.0.2.tar.bz2 .
|
unzip wxWidgets-audacity-fixes.zip
|
||||||
|
|
||||||
9) Apply the following fixes to wxWidgets:
|
|
||||||
|
|
||||||
cd wxWidgets-3.0.2
|
|
||||||
patch -p0 -i <path to Audacity source>/mac/wxMac_additions/wxMac-3.0.2-fixes.patch .
|
|
||||||
patch -p0 -i <path to Audacity source>/mac/wxMac_additions/eventloops.patch .
|
|
||||||
patch -p0 -i <path to Audacity source>/mac/wxMac_additions/pinch-spread.patch .
|
|
||||||
patch -p0 -i <path to Audacity source>/mac/wxMac_additions/focusrings.patch .
|
|
||||||
patch -p0 -i <path to Audacity source>/mac/wxMac_additions/wxMac-3.0.2-wxaccessible.patch .
|
|
||||||
patch -p0 -i <path to Audacity source>/mac/wxMac_additions/tooldock-quit.patch .
|
|
||||||
patch -p0 -i <path to Audacity source>/mac/wxMac_additions/fullscreen.patch .
|
|
||||||
|
|
||||||
10) And finally build/install wxWidgets:
|
10) And finally build/install wxWidgets:
|
||||||
|
|
||||||
@ -74,4 +71,3 @@ And install:
|
|||||||
cd gexttext-latest
|
cd gexttext-latest
|
||||||
./configure
|
./configure
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
1
mac/scripts/get_gitident.sh
Normal file
1
mac/scripts/get_gitident.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
git show -s --format="wxT(\"[[http://github.com/audacity/audacity/commit/%H|%h]] of %cd\")" | tee ../src/RevisionIdent.h
|
13
mac/scripts/sign_dist.sh
Normal file
13
mac/scripts/sign_dist.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
#Hand edit this to get the 'right' results.
|
||||||
|
#This batch file is just a reminder of the commands...
|
||||||
|
|
||||||
|
hdiutil resize -size 200m /private/tmp/TMP.dmg
|
||||||
|
hdiutil mount /private/tmp/TMP.dmg
|
||||||
|
codesign --deep -s IDENTITY -v "/Volumes/Audacity VERSION/Audacity.app"
|
||||||
|
spctl -s -v "Volumes/Audacity VERSION/Audacity.app"
|
||||||
|
hdiutil eject "/Volumes/Audacity VERSION/"
|
||||||
|
|
||||||
|
# Compress and prepare for Internet delivery
|
||||||
|
hdiutil convert /private/tmp/TMP.dmg -format UDZO -imagekey zlib-level=9 -o "/private/tmp/RESULT.dmg"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user