mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +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 "^$$"
|
@xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
|
||||||
@$(MAKE) -C macosx clean
|
@$(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:
|
package:
|
||||||
$(RM) tmp "Transmission $(VERSION_STRING)" \
|
$(PACKAGE_RULE1)
|
||||||
Transmission-$(VERSION_STRING).dmg && \
|
$(PACKAGE_RULE2)
|
||||||
mkdir -p tmp && \
|
|
||||||
cp -r macosx/Transmission.app tmp/ && \
|
package-release:
|
||||||
cp AUTHORS tmp/AUTHORS.txt && \
|
$(PACKAGE_RULE1)
|
||||||
cp LICENSE tmp/LICENSE.txt && \
|
strip -S tmp/Transmission.app/Contents/MacOS/Transmission
|
||||||
cp NEWS tmp/NEWS.txt && \
|
$(PACKAGE_RULE2)
|
||||||
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)"
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue