-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update sdoc version and sdoc translate
- Loading branch information
Showing
3 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
#!/bin/sh | ||
|
||
# Enter the frontend directory and install the latest version of sdoc-editor | ||
echo 'install sdoc-editor version' | ||
cd frontend | ||
|
||
npm install @seafile/sdoc-editor@latest | ||
|
||
# Copy the font icon of sdoc-editor | ||
echo 'copy sdoc-editor font icon' | ||
cd .. | ||
|
||
cp -r frontend/node_modules/@seafile/sdoc-editor/public/media/sdoc-editor-font media/sdoc-editor/ | ||
cp -r frontend/node_modules/@seafile/sdoc-editor/public/media/sdoc-editor-font.css media/sdoc-editor/sdoc-editor-font.css | ||
|
||
|
||
# Get the latest translation content of sdoc-editor | ||
echo 'update sdoc-editor translation content' | ||
tx pull -s -t -f seahub.sdoc-editor | ||
|
||
cp -r media/sdoc-editor/locales/zh_CN/sdoc-editor.json media/sdoc-editor/locales/zh-CN/sdoc-editor.json | ||
|
||
git add . | ||
|
||
git commit -m "update sdoc version and sdoc translate" | ||
|
||
git push origin master | ||
echo 'Please check the updated content and see if it needs to be submitted.' | ||
read -p "Do you want to continue submitting code? y/n: " Y | ||
if [ $Y = 'y' ] | ||
then | ||
git add . | ||
git commit -m "update sdoc version and sdoc translate" | ||
git push origin master | ||
fi | ||
|