Skip to content

Commit

Permalink
Add file permissions and fix run.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
work7z committed Mar 9, 2024
1 parent e81c9d0 commit 6f81c66
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ jobs:
script: |
echo 'unzip pipeline server'
unzip /home/appuser/LafTools-dist/pipeline-server-${{steps.get_version.outputs.VERSION}}.zip -d /home/appuser/LafTools-dist/pipeline-server-${{steps.get_version.outputs.VERSION}}
chmod +x /home/appuser/LafTools-dist/pipeline-server-${{steps.get_version.outputs.VERSION}}/home/runner/work/LafTools/LafTools-tag/pipeline/server/run.sh
/home/appuser/LafTools-dist/pipeline-server-${{steps.get_version.outputs.VERSION}}/home/runner/work/LafTools/LafTools-tag/pipeline/server/run.sh ${{steps.get_version.outputs.VERSION}}
- name: Upload Release Asset for linux-x64
uses: actions/upload-release-asset@v1
Expand Down
2 changes: 2 additions & 0 deletions pipeline/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ build-bundle(){

refining(){
echo "[I] refining resources.."
find ./parcel -iname "*.bin" -exec chmod 755 {} \;
find ./pipeline -iname "*.bin" -exec chmod 755 {} \;
find ./dist -iname "*.bin" -exec chmod 755 {} \;
find ./dist -iname "*.sh" -exec chmod 755 {} \;
find ./dist -iname "*.command" -exec chmod 755 {} \;
Expand Down
2 changes: 1 addition & 1 deletion pipeline/parcel/docker/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export NO_PROXY=172.17.0.1,localhost

echo -e "\033[32m[√] 已开启代理\033[0m"
tar -xzvf /opt/app/linux.tar.gz
./run.sh --mode=docker,online
./run.sh
4 changes: 4 additions & 0 deletions pipeline/server/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#!/bin/bash

crtVersion=$1
if [ -z $crtVersion ]; then
echo "[E] crtVersion is required."
exit 1
fi

cd ~/LafTools-dist
ctn=$(ls | wc -l)
Expand Down

0 comments on commit 6f81c66

Please sign in to comment.