forked from UniversalMediaServer/UniversalMediaServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathums-release-macos-intel.sh
57 lines (49 loc) · 1.85 KB
/
ums-release-macos-intel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This script should run on an Intel Mac.
#
# It builds the "pre-10.15" and default macOS releases. The default release will also be
# signed/notarized so that macOS does not complain about it as much to users.
#
# It also does the Docker Hub release which uses Alpine Linux.
#
# It requires you to copy the gon-config-prebuild.json and gon-config-build-intel.json files from
# the ./dependencies directory into the root (one higher than here) directory, and populate
# them with your Apple Developer credentials.
# You also need to bump the versions in those files before each release. That should probably
# be automated later.
#
# The Docker part requires permission to push to universalmediaserver/ums.
# It also requires you to have a "linux" folder inside the ./docker folder that contains the
# binaries to run on Alpine Linux. For now they are ffmpeg and tsMuxeR.
cd ..
# Clear the folder for a clean build
rm UMS-macOS-*
rm -fr target/ums*
rm -rf target/antrun
rm -rf target/archive-tmp
rm -rf target/classes
rm -rf target/generated-sources
rm -rf target/generated-test-sources
rm -rf target/maven-archiver
rm -rf target/surefire-reports
rm -rf target/test-classes
mvn -P macos package -DskipTests=true
./scripts/dependencies/gon ./gon-config-prebuild.json
./scripts/dependencies/gon ./gon-config-build-intel.json
cd docker
ant
docker tag ums universalmediaserver/ums
docker push universalmediaserver/ums
cd ..
Clear the folder for a clean build
rm UMS--pre10.15.dmg
rm -fr target/ums*
rm -rf target/antrun
rm -rf target/archive-tmp
rm -rf target/classes
rm -rf target/generated-sources
rm -rf target/generated-test-sources
rm -rf target/maven-archiver
rm -rf target/surefire-reports
rm -rf target/test-classes
mvn -P macos-pre1015 package -DskipTests=true
hdiutil create -volname "Universal Media Server" -srcfolder target/ums-*-distribution -fs HFS+ UMS-macOS--pre10.15.dmg