generated from pot-app/pot-app-translate-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -93,6 +93,9 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
- uses: ConorMacBride/install-package@v1 | ||
with: | ||
brew: wget | ||
- name: Install Rust Stable | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: install toolchain | ||
|
@@ -105,10 +108,15 @@ jobs: | |
run: sudo mv target/${{ matrix.target }}/release/libplugin.dylib ./plugin.dylib | ||
- name: Download Database | ||
run: | | ||
curl https://github.com/pot-app/pot-app-translate-plugin-ecdict/releases/download/0.0.1/stardict.db -o stardict.db | ||
wget https://github.com/skywind3000/ECDICT/releases/download/1.0.28/ecdict-sqlite-28.zip | ||
- name: extract-7z-action | ||
uses: DuckSoft/[email protected] | ||
with: | ||
pathSource: ecdict-sqlite-28.zip | ||
pathTarget: Database | ||
- uses: vimtor/action-zip@v1 | ||
with: | ||
files: info.json ${{needs.check.outputs.icon}} plugin.dylib stardict.db | ||
files: info.json ${{needs.check.outputs.icon}} plugin.dylib Database | ||
dest: ${{needs.check.outputs.name}}.potext | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -147,17 +155,24 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
- name: Install Wget | ||
run: sudo apt-get install wget -y | ||
- name: Build for Linux | ||
uses: ./.github/build-for-linux | ||
with: | ||
target: ${{ matrix.target }} | ||
toolchain: stable-${{ matrix.target }} | ||
- name: Download Database | ||
run: | | ||
curl https://github.com/pot-app/pot-app-translate-plugin-ecdict/releases/download/0.0.1/stardict.db -o stardict.db | ||
wget https://github.com/skywind3000/ECDICT/releases/download/1.0.28/ecdict-sqlite-28.zip | ||
- name: extract-7z-action | ||
uses: DuckSoft/[email protected] | ||
with: | ||
pathSource: ecdict-sqlite-28.zip | ||
pathTarget: Database | ||
- uses: vimtor/action-zip@v1 | ||
with: | ||
files: info.json ${{needs.check.outputs.icon}} plugin.so stardict.db | ||
files: info.json ${{needs.check.outputs.icon}} plugin.so Database | ||
dest: ${{needs.check.outputs.name}}.potext | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
|