Skip to content

Commit

Permalink
improve HOW_TO_BUILD.md (typcn#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
apm1467 authored and typcn committed Apr 19, 2017
1 parent 7e475f5 commit 95f0208
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions HOW_TO_BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 95f0208

Please sign in to comment.