diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 5f0bcb6..205946f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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