forked from metabrainz/picard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build scripts fro win and osx, add patch_version command to setup.py
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cd deps | ||
tar xf chromaprint-fpcalc-*.tar.gz | ||
rm chromaprint-fpcalc-*.tar.gz | ||
export PATH=`pwd`/`ls | grep chromaprint-fpcalc`:$PATH | ||
cd .. | ||
|
||
python2.7 setup.py patch_version --platform=osx | ||
version=`python -c 'import picard; print picard.__version__'` | ||
|
||
. e/bin/activate | ||
|
||
rm -rf dist build locale | ||
python2.7 setup.py clean | ||
python2.7 setup.py build_ext -i | ||
python2.7 setup.py build_locales -i | ||
python2.7 setup.py py2app | ||
|
||
cd dist | ||
ditto -rsrc --arch x86_64 'MusicBrainz Picard.app' 'MusicBrainz Picard.tmp' | ||
rm -r 'MusicBrainz Picard.app' | ||
mv 'MusicBrainz Picard.tmp' 'MusicBrainz Picard.app' | ||
hdiutil create -volname "MusicBrainz Picard $version" -srcfolder 'MusicBrainz Picard.app' -ov -format UDBZ MusicBrainz-Picard-$version.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
set PATH=%PATH%;%WORKSPACE%;C:\MinGW\bin;C:\Python27;C:\Python27\Scripts;"C:\Program Files\7-Zip" | ||
call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" | ||
|
||
del installer\*.exe | ||
|
||
copy /Y "C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\msvcr90.dll" . | ||
copy /Y "C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\msvcp90.dll" . | ||
|
||
7z e -odeps deps\chromaprint-fpcalc-*.zip | ||
copy /Y deps\fpcalc.exe . | ||
|
||
REM virtualenv --system-site-packages e | ||
set PATH=%WORKSPACE%\e\scripts;%PATH% | ||
|
||
pip install -U discid | ||
pip install -U mutagen | ||
|
||
python setup.py patch_version --platform=win | ||
|
||
rmdir /S /Q dist | ||
python setup.py clean | ||
python setup.py build_ext -i | ||
python setup.py build_locales -i | ||
python setup.py bdist_nsis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters