Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
celetor committed Sep 9, 2022
1 parent 7368c09 commit 6a07455
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
repoUrl: https://github.com/takagen99/Box
branchName: main
env:
local_xwalk: true
# 登录蓝奏云后在控制台运行document.cookie
ylogin: ${{ secrets.YLOGIN }}
phpdisk_info: ${{ secrets.PHPDISK_INFO }}
Expand Down Expand Up @@ -84,16 +85,14 @@ jobs:
sed -i "/applicationId/c\\applicationId '${{ matrix.userName }}.tvbox.osc'" ./app/build.gradle
- name: xwalk_shared_library Fix
if: ${{ env.commit }}
if: ${{ env.commit }} && ${{ env.local_xwalk == 'true' }}
working-directory: TVBoxOSC
run: |
if ! grep -q "org.xwalk" ./app/build.gradle; then
echo 'copy library'
cp -f ${{ github.workspace }}/actions/.github/scripts/crosswalk-shared-23.53.589.4.aar ./app/libs/crosswalk-shared-23.53.589.4.aar
# lineNo=$(awk '/org.xwalk/{ print NR; exit }' ./app/build.gradle)
sed -i "/org.xwalk/i\ implementation files('libs\\\\\\\\crosswalk-shared-23.53.589.4.aar')" ./app/build.gradle
sed -i '/org.xwalk/,/^\s*}$/d' ./app/build.gradle
fi
echo 'copy library'
cp -f ${{ github.workspace }}/actions/.github/scripts/crosswalk-shared-23.53.589.4.aar ./app/libs/crosswalk-shared-23.53.589.4.aar
# lineNo=$(awk '/org.xwalk/{ print NR; exit }' ./app/build.gradle)
sed -i "/org.xwalk/i\ implementation files('libs\\\\\\\\crosswalk-shared-23.53.589.4.aar')" ./app/build.gradle
sed -i '/org.xwalk/,/^\s*}$/d' ./app/build.gradle
- name: Build With Gradle
if: ${{ env.commit }}
Expand Down

0 comments on commit 6a07455

Please sign in to comment.