Skip to content

Commit

Permalink
Update cmake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chase535 authored Nov 5, 2022
1 parent 85f082d commit 504f04b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
cp -af ${{github.workspace}}/module ${{github.workspace}}/module_no_trickle;
cp -af ${{github.workspace}}/build/accurate_battery ${{github.workspace}}/module/common/accurate_battery;
cp -af ${{github.workspace}}/build/accurate_battery_no_trickle ${{github.workspace}}/module_no_trickle/common/accurate_battery_no_trickle;
rm -f ${{github.workspace}}/module_no_trickle/customize.sh;
rm -f ${{github.workspace}}/module/customize_no_trickle.sh;
mv ${{github.workspace}}/module_no_trickle/customize_no_trickle.sh ${{github.workspace}}/module_no_trickle/customize.sh;
sed -i 's/^description=.*/description=精准电量,干掉虚假的UI电量。注意!由于此版本设计为不将涓流充电过程加入电量统计,所以充到100%后仍会有充电电流!如想将涓流充电过程加入电量统计,请使用后缀不带no_trickle的版本!/g' ${{github.workspace}}/module_no_trickle/module.prop;
sed -i '/^nohup/d' ${{github.workspace}}/module_no_trickle/common/service.sh;
echo 'nohup $MODDIR/accurate_battery_no_trickle &' >> ${{github.workspace}}/module_no_trickle/common/service.sh
Expand Down

0 comments on commit 504f04b

Please sign in to comment.