From 95f0208483d6b804ad0654c610e27bd86a624c7c Mon Sep 17 00:00:00 2001 From: Yi Ge Date: Wed, 19 Apr 2017 15:24:06 +0200 Subject: [PATCH] improve HOW_TO_BUILD.md (#402) --- HOW_TO_BUILD.md | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/HOW_TO_BUILD.md b/HOW_TO_BUILD.md index fe5b6dc..816ef64 100644 --- a/HOW_TO_BUILD.md +++ b/HOW_TO_BUILD.md @@ -2,33 +2,36 @@ * OS X 10.10 * Git -* XCode 6 +* Xcode 6 # Download Sources brew install git-lfs + git lfs install git clone https://github.com/typcn/bilibili-mac-client.git + cd bilibili-mac-client/ git submodule update --init + +# Open Project in Xcode + +Open `VideoPolymer.xcworkspace` with Xcode. + +Note: Do not just open `bilibili.xcodeproj`. It is incomplete. # Change code signing -If you don't have code signing , please set signing to "None" +If you don't have code signing, please set signing to “None”. # Change bundle id -Project Navigator -> Bilibili -> Change com.typcn to others +Project Navigator -> Bilibili: Change “com.typcn” to others. -# About the video quality +# Build -Debug build is using html5 playurl api, you can only play low quality videos. +Select “bilibili” as the active scheme at the upper left corner of the Xcode window. Then click “build”. The app will start automatically. -If you need play high quality video , just build with Release mode, dynamic video parser will load into memory. - -# About libraries +# About the video quality -If you can't download libraries from git-lfs, please run following commands. +In Debug build, HTML5 playurl API is used. You can only play low quality videos. - cd bilibili/libs/ - rm -rf *.dylib - wget http://7xkd32.dl1.z0.glb.clouddn.com/bilibili/libs/2.zip - unzip 2.zip +If you need play high quality video, just build with Release mode. Dynamic video parser will be loaded into memory.