Skip to content

Commit

Permalink
chore: update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Nov 22, 2024
1 parent 37b5de1 commit 59aea2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ jobs:
run: |
mv ui/* .
py_path="RapidVideOCR_en.py"
py_path="RapidVideOCR_En.py"
line_num=$(sed -n "/self.version = /=" $py_path)
new_version="${{ github.ref_name }}"
sed -i "${line_num}d" $py_path
sed -i "${line_num}i\ self.version = '${new_version}'" $py_path
sed -i "s/RapidVideOCR/RapidVideOCR_en/" RapidVideOCR.spec
sed -i "s/RapidVideOCR/RapidVideOCR_En/" RapidVideOCR.spec
pyinstaller RapidVideOCR.spec
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 59aea2b

Please sign in to comment.