Skip to content

Commit

Permalink
[depoly]:unix系统下部分文件添加可执行权限;
Browse files Browse the repository at this point in the history
  • Loading branch information
RealChuan committed May 6, 2024
1 parent d6f85c9 commit 57d2edd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,13 @@ jobs:
if: startsWith(matrix.os, 'macos')
shell: bash
run: |
sudo chmod -R a+x .
sudo chmod 755 ./../../packaging/macos/deploy.sh
./../../packaging/macos/deploy.sh
working-directory: ./bin-64/${{ matrix.build_type }}
- name: Deploy ubuntu
if: startsWith(matrix.os, 'ubuntu')
shell: bash
run: |
sudo chmod -R a+x .
sudo chmod 755 ./../../packaging/ubuntu/deploy.sh
./../../packaging/ubuntu/deploy.sh
working-directory: ./bin-64/${{ matrix.build_type }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/qmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- '.github/workflows/readme.yml'
- '.github/workflows/toolchain.yml'
- 'doc/**'
- 'packaging/**'
- 'translation/**'
- '.clang-*'
- '.gitignore'
Expand All @@ -24,6 +25,7 @@ on:
- '.github/workflows/readme.yml'
- '.github/workflows/toolchain.yml'
- 'doc/**'
- 'packaging/**'
- 'translation/**'
- '.clang-*'
- '.gitignore'
Expand Down
2 changes: 2 additions & 0 deletions packaging/macos/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ if [[ "$parent_dir" != */bin-64 ]]; then
exit 1
fi

sudo chmod -R +x .

# 部署Qt应用
macdeployqt "Qt-App.app" -always-overwrite

Expand Down
6 changes: 5 additions & 1 deletion packaging/ubuntu/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ if [[ "$parent_dir" != */bin-64 ]]; then
exit 1
fi

sudo chmod -R +x .

# 添加universe仓库
sudo add-apt-repository universe
sudo apt update
Expand All @@ -21,7 +23,7 @@ wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/contin
-O /usr/local/bin/linuxdeployqt

# 给予执行权限
sudo chmod a+x /usr/local/bin/linuxdeployqt
sudo chmod +x /usr/local/bin/linuxdeployqt

# 复制桌面文件和图标
cp -f ./../../packaging/ubuntu/Qt-App.desktop .
Expand Down Expand Up @@ -57,4 +59,6 @@ linuxdeployqt \
-unsupported-allow-new-glibc \
-appimage

chmod +x *.AppImage

echo "Deployment ubuntu completed."

0 comments on commit 57d2edd

Please sign in to comment.