-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (35 loc) · 1.27 KB
/
Makefile
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
INSTALL_TOOLCHAINS:
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
rustup target add x86_64-unknown-linux-gnu
rustup target add x86_64-pc-windows-msvc
DEPLOY_LINUX_RELEASE:
cargo build --release --target x86_64-unknown-linux-gnu && \
cd target/x86_64-unknown-linux-gnu && \
tar -czf m3u8_downloader-linux-x64.tar.gz m3u8_downloader
DEPLOY_WINDOWS_RELEASE:
cargo build --release --target x86_64-pc-windows-msvc && \
cd target/x86_64-pc-windows-msvc && \
tar -czf m3u8_downloader-windows-x64.tar.gz m3u8_downloader
OSX_ARM64_RELEASE:
cargo build --release --target aarch64-apple-darwin
OSX_X64_RELEASE:
cargo build --release --target x86_64-apple-darwin
DEPLOY_OSX_UNIVERSAL_RELEASE: OSX_ARM64_RELEASE OSX_X64_RELEASE
rm -rf target/osx_release_universal && \
mkdir target/osx_release_universal && \
lipo \
-create \
target/aarch64-apple-darwin/release/m3u8_downloader \
target/x86_64-apple-darwin/release/m3u8_downloader \
-output \
target/osx_release_universal/m3u8_downloader && \
cd target/osx_release_universal && \
tar -czf m3u8_downloader-osx-universal.tar.gz m3u8_downloader && \
shasum -a 256 m3u8_downloader-osx-universal.tar.gz
BUILD_DOC:
cargo doc --open
TEST_PUBLISH:
cargo publish --dry-run
PUBLISH:
cargo publish