mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
"make package" now doesn't strip debug symbols anymore, so bug reports
on the nightlies should be more useful. Use "make package-release" to build a stripped package.
This commit is contained in:
parent
58ec8a3b19
commit
bf8ddbe4ec
1 changed files with 26 additions and 16 deletions
42
Makefile
42
Makefile
|
@ -53,23 +53,33 @@ clean:
|
|||
@xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
|
||||
@$(MAKE) -C macosx clean
|
||||
|
||||
MAKELINK = printf "[InternetShortcut]\nURL=http://%s\n"
|
||||
MAKELINK = printf "[InternetShortcut]\nURL=http://transmission.m0k.org%s\n"
|
||||
define PACKAGE_RULE1
|
||||
$(RM) tmp "Transmission $(VERSION_STRING)" \
|
||||
Transmission-$(VERSION_STRING).dmg
|
||||
mkdir -p tmp
|
||||
cp -r macosx/Transmission.app tmp/
|
||||
cp AUTHORS tmp/AUTHORS.txt
|
||||
cp LICENSE tmp/LICENSE.txt
|
||||
cp NEWS tmp/NEWS.txt
|
||||
$(MAKELINK) "/" > tmp/Homepage.url
|
||||
$(MAKELINK) "/forum" > tmp/Forums.url
|
||||
$(MAKELINK) "/contribute.php" > tmp/Contribute.url
|
||||
endef
|
||||
define PACKAGE_RULE2
|
||||
mv tmp "Transmission $(VERSION_STRING)"
|
||||
hdiutil create -format UDZO -srcfolder \
|
||||
"Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg
|
||||
rm -rf "Transmission $(VERSION_STRING)"
|
||||
endef
|
||||
|
||||
package:
|
||||
$(RM) tmp "Transmission $(VERSION_STRING)" \
|
||||
Transmission-$(VERSION_STRING).dmg && \
|
||||
mkdir -p tmp && \
|
||||
cp -r macosx/Transmission.app tmp/ && \
|
||||
cp AUTHORS tmp/AUTHORS.txt && \
|
||||
cp LICENSE tmp/LICENSE.txt && \
|
||||
cp NEWS tmp/NEWS.txt && \
|
||||
strip -S tmp/Transmission.app/Contents/MacOS/Transmission && \
|
||||
$(MAKELINK) "transmission.m0k.org/" > tmp/Homepage.url && \
|
||||
$(MAKELINK) "transmission.m0k.org/forum" > tmp/Forums.url && \
|
||||
$(MAKELINK) "transmission.m0k.org/contribute.php" > tmp/Contribute.url && \
|
||||
mv tmp "Transmission $(VERSION_STRING)" && \
|
||||
hdiutil create -format UDZO -srcfolder \
|
||||
"Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg && \
|
||||
rm -rf "Transmission $(VERSION_STRING)"
|
||||
$(PACKAGE_RULE1)
|
||||
$(PACKAGE_RULE2)
|
||||
|
||||
package-release:
|
||||
$(PACKAGE_RULE1)
|
||||
strip -S tmp/Transmission.app/Contents/MacOS/Transmission
|
||||
$(PACKAGE_RULE2)
|
||||
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue