mirror of
https://github.com/ivabus/gui
synced 2025-06-07 15:50:27 +03:00
commit
777d32b43c
7 changed files with 215 additions and 84 deletions
2
.github/notify-slack.js
vendored
2
.github/notify-slack.js
vendored
|
@ -8,7 +8,7 @@ async function main() {
|
||||||
type: 'section',
|
type: 'section',
|
||||||
text: {
|
text: {
|
||||||
type: 'mrkdwn',
|
type: 'mrkdwn',
|
||||||
text: `NEW BUILD FOR ${process.env.PLATFORM} <${process.env.DOWNLOAD_URL}|download ${process.env.VERSION || ''}>`
|
text: `NEW BUILD FOR ${process.env.PLATFORM} <${process.env.DOWNLOAD_URL}|download ${process.env.EXT || 'bin'} ${process.env.VERSION || ''}>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
203
.github/workflows/ci.yml
vendored
203
.github/workflows/ci.yml
vendored
|
@ -107,7 +107,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
message-id: preview-comment-${{needs.changes.outputs.preview_folder}}
|
message-id: preview-comment-${{needs.changes.outputs.preview_folder}}
|
||||||
message: |
|
message: |
|
||||||
**preview is at**: [https://${{steps.preview_setup.outputs.domain}}](https://${{steps.preview_setup.outputs.domain}})
|
**preview is at**:
|
||||||
|
<a href="https://${{steps.preview_setup.outputs.domain}}" target="_blank">here</a>
|
||||||
```bash
|
```bash
|
||||||
https://${{steps.preview_setup.outputs.domain}}
|
https://${{steps.preview_setup.outputs.domain}}
|
||||||
```
|
```
|
||||||
|
@ -122,91 +123,143 @@ jobs:
|
||||||
platform:
|
platform:
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
name: darwin+x86-64
|
name: darwin+x86-64
|
||||||
|
id: mac_latest
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
name: linux+x86-64
|
name: linux+x86-64
|
||||||
|
id: linux
|
||||||
- os: [self-hosted, macOS, ARM64]
|
- os: [self-hosted, macOS, ARM64]
|
||||||
name: darwin+aarch64
|
name: darwin+aarch64
|
||||||
|
id: mac_m1
|
||||||
# - os: [self-hosted, linux, ARM64]
|
# - os: [self-hosted, linux, ARM64]
|
||||||
# name: linux+aarch64
|
# name: linux+aarch64
|
||||||
container: ${{ matrix.platform.container }}
|
container: ${{ matrix.platform.container }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 7
|
||||||
|
- name: setup node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: 'pnpm'
|
||||||
|
cache-dependency-path: pnpm-lock.yaml
|
||||||
|
- name: install Rust stable
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
- name: install app dependencies
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2
|
- name: install dependencies (ubuntu only)
|
||||||
with:
|
if: matrix.platform.name == 'linux+x86-64'
|
||||||
version: 7
|
run: |
|
||||||
- name: setup node
|
sudo apt-get update
|
||||||
uses: actions/setup-node@v1
|
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf pkg-config
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
cache: 'pnpm'
|
|
||||||
cache-dependency-path: pnpm-lock.yaml
|
|
||||||
- name: install Rust stable
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
- name: install dependencies (ubuntu only)
|
|
||||||
if: matrix.platform.name == 'linux+x86-64'
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf pkg-config
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
|
||||||
with:
|
|
||||||
# The prefix cache key, this can be changed to start a new cache manually.
|
|
||||||
# default: "v0-rust"
|
|
||||||
prefix-key: ${{ matrix.platform.name }}
|
|
||||||
shared-key: ci
|
|
||||||
cache-targets: false
|
|
||||||
- name: install app dependencies
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: Cache Tauri Target
|
- uses: Swatinem/rust-cache@v2
|
||||||
uses: actions/cache@v3
|
with:
|
||||||
with:
|
# The prefix cache key, this can be changed to start a new cache manually.
|
||||||
path: |
|
# default: "v0-rust"
|
||||||
./modules/gui/src-tauri/target
|
prefix-key: ${{ matrix.platform.name }}
|
||||||
key: ${{ matrix.platform.name }}-build-target
|
shared-key: ci
|
||||||
restore-keys: |
|
cache-targets: false
|
||||||
${{ matrix.platform.name }}-build-target
|
|
||||||
|
|
||||||
- name: build platform output
|
|
||||||
id: build_platform
|
|
||||||
env:
|
|
||||||
platform: ${{ matrix.platform.name }}
|
|
||||||
run: |
|
|
||||||
EXTENSION=dmg
|
|
||||||
BUILD_PLATFORM=$(echo $platform | sed -e "s/darwin+//g" | sed -e "s/linux+//g")
|
|
||||||
[[ $BUILD_PLATFORM = "x86-64" ]] && BUILD_PLATFORM="x64" || BUILD_PLATFORM=$BUILD_PLATFORM
|
|
||||||
[[ $platform = "linux+x86-64" ]] && BUILD_PLATFORM="amd64" || BUILD_PLATFORM=$BUILD_PLATFORM
|
|
||||||
[[ $platform = "linux+x86-64" ]] && EXTENSION="deb"
|
|
||||||
echo "build_platform=$BUILD_PLATFORM" >> $GITHUB_OUTPUT
|
|
||||||
echo "extension=$EXTENSION" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: test build tauri
|
- name: Cache Tauri Target
|
||||||
run: pnpm --filter gui tauri build
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
./modules/gui/src-tauri/target
|
||||||
|
key: ${{ matrix.platform.name }}-build-target
|
||||||
|
restore-keys: |
|
||||||
|
${{ matrix.platform.name }}-build-target
|
||||||
|
|
||||||
|
- name: build platform output
|
||||||
|
id: build_platform
|
||||||
|
env:
|
||||||
|
platform: ${{ matrix.platform.name }}
|
||||||
|
run: |
|
||||||
|
EXTENSION=dmg
|
||||||
|
BUILD_PLATFORM=$(echo $platform | sed -e "s/darwin+//g" | sed -e "s/linux+//g")
|
||||||
|
[[ $BUILD_PLATFORM = "x86-64" ]] && BUILD_PLATFORM="x64" || BUILD_PLATFORM=$BUILD_PLATFORM
|
||||||
|
[[ $platform = "linux+x86-64" ]] && BUILD_PLATFORM="amd64" || BUILD_PLATFORM=$BUILD_PLATFORM
|
||||||
|
[[ $platform = "linux+x86-64" ]] && EXTENSION="deb"
|
||||||
|
echo "build_platform=$BUILD_PLATFORM" >> $GITHUB_OUTPUT
|
||||||
|
echo "extension=$EXTENSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: aws-actions/configure-aws-credentials@v1
|
- name: test build tauri for MacOS
|
||||||
with:
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
# FROM: https://tauri.app/v1/guides/distribution/sign-macos
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
env:
|
||||||
aws-region: us-east-1
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
ENABLE_CODE_SIGNING: ${{ secrets.GUI_APPLE_CERTIFICATE }}
|
||||||
|
APPLE_CERTIFICATE: ${{ secrets.GUI_APPLE_CERTIFICATE }}
|
||||||
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.GUI_APPLE_CERTIFICATE_PASSWORD }}
|
||||||
|
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
||||||
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
|
run: pnpm build:gui
|
||||||
|
|
||||||
- name: cp package images from prod to preview bucket
|
- name: test build tauri for Linux
|
||||||
env:
|
if: matrix.platform.name == 'linux+x86-64'
|
||||||
prefix: ${{ needs.changes.outputs.preview_folder }}
|
# TODO: https://tauri.app/v1/guides/distribution/sign-linux
|
||||||
platform: ${{ steps.build_platform.outputs.build_platform }}
|
run: pnpm build:gui
|
||||||
extension: ${{ steps.build_platform.outputs.extension }}
|
|
||||||
run: |
|
- name: zip .app for MacOS
|
||||||
aws s3 cp "./modules/gui/src-tauri/target/release/bundle/$extension/tea_0.1.0_$platform.$extension" \
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
"s3://preview.gui.tea.xyz/$prefix/gui_$platform.$extension"
|
run: |
|
||||||
|
cd ./modules/gui/src-tauri/target/release/bundle/macos/ && zip -r tea.zip tea.app
|
||||||
|
|
||||||
|
- uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-1
|
||||||
|
|
||||||
|
- name: cp package images from prod to preview bucket
|
||||||
|
env:
|
||||||
|
prefix: ${{ needs.changes.outputs.preview_folder }}
|
||||||
|
platform: ${{ steps.build_platform.outputs.build_platform }}
|
||||||
|
extension: ${{ steps.build_platform.outputs.extension }}
|
||||||
|
run: |
|
||||||
|
aws s3 cp "./modules/gui/src-tauri/target/release/bundle/$extension/tea_0.1.0_$platform.$extension" \
|
||||||
|
"s3://preview.gui.tea.xyz/$prefix/tea_$platform.$extension"
|
||||||
|
|
||||||
- name: comment install
|
- name: cp package zip for MacOS
|
||||||
uses: mshick/add-pr-comment@v2
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
with:
|
env:
|
||||||
message-id: ${{ matrix.platform.name }}-comment
|
prefix: ${{ needs.changes.outputs.preview_folder }}
|
||||||
message: |
|
platform: ${{ steps.build_platform.outputs.build_platform }}
|
||||||
**installer for ${{ matrix.platform.name }} is at**: [here](http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/gui_${{steps.build_platform.outputs.build_platform}}.${{steps.build_platform.outputs.extension}})
|
run: |
|
||||||
```bash
|
aws s3 cp ./modules/gui/src-tauri/target/release/bundle/macos/tea.zip "s3://preview.gui.tea.xyz/$prefix/tea_$platform.zip"
|
||||||
http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/gui_${{ steps.build_platform.outputs.build_platform }}.${{ steps.build_platform.outputs.extension }}
|
|
||||||
```
|
- name: comment install for Linux
|
||||||
copy-paste into a browser to download
|
if: matrix.platform.name == 'linux+x86-64'
|
||||||
|
uses: mshick/add-pr-comment@v2
|
||||||
|
with:
|
||||||
|
message-id: ${{ matrix.platform.id }}-comment
|
||||||
|
message: |
|
||||||
|
**installer for Linux ${{ matrix.platform.name }} is at**:
|
||||||
|
<a href="http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/tea_${{steps.build_platform.outputs.build_platform}}.${{steps.build_platform.outputs.extension}}" target="_blank">here</a>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/tea_${{ steps.build_platform.outputs.build_platform }}.${{ steps.build_platform.outputs.extension }}
|
||||||
|
```
|
||||||
|
copy-paste into a browser to download
|
||||||
|
|
||||||
|
- name: comment install for MacOS
|
||||||
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
|
uses: mshick/add-pr-comment@v2
|
||||||
|
with:
|
||||||
|
message-id: ${{ matrix.platform.id }}-comment
|
||||||
|
message: |
|
||||||
|
**installers for MacOS ${{ matrix.platform.name }} is at**:
|
||||||
|
<a href="http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/tea_${{steps.build_platform.outputs.build_platform}}.zip" target="_blank">.zip</a>
|
||||||
|
or
|
||||||
|
<a href="http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/tea_${{steps.build_platform.outputs.build_platform}}.dmg" target="_blank">.dmg</a>
|
||||||
|
|
||||||
|
```bash
|
||||||
|
http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/tea_${{ steps.build_platform.outputs.build_platform }}.zip
|
||||||
|
http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/tea_${{ steps.build_platform.outputs.build_platform }}.dmg
|
||||||
|
```
|
||||||
|
copy-paste into a browser to download
|
42
.github/workflows/main.yml
vendored
42
.github/workflows/main.yml
vendored
|
@ -113,8 +113,23 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ matrix.platform.name }}-build-target-prod
|
${{ matrix.platform.name }}-build-target-prod
|
||||||
|
|
||||||
- name: test build tauri
|
- name: test build tauri for MacOS
|
||||||
run: pnpm --filter gui tauri build
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
|
# FROM: https://tauri.app/v1/guides/distribution/sign-macos
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
ENABLE_CODE_SIGNING: ${{ secrets.GUI_APPLE_CERTIFICATE }}
|
||||||
|
APPLE_CERTIFICATE: ${{ secrets.GUI_APPLE_CERTIFICATE }}
|
||||||
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.GUI_APPLE_CERTIFICATE_PASSWORD }}
|
||||||
|
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
||||||
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
|
run: pnpm build:gui
|
||||||
|
|
||||||
|
- name: test build tauri for Linux
|
||||||
|
if: matrix.platform.name == 'linux+x86-64'
|
||||||
|
# TODO: https://tauri.app/v1/guides/distribution/sign-linux
|
||||||
|
run: pnpm build:gui
|
||||||
|
|
||||||
- name: Get current unix ts - seconds
|
- name: Get current unix ts - seconds
|
||||||
id: date
|
id: date
|
||||||
|
@ -138,6 +153,11 @@ jobs:
|
||||||
echo "build_platform=$BUILD_PLATFORM" >> $GITHUB_OUTPUT
|
echo "build_platform=$BUILD_PLATFORM" >> $GITHUB_OUTPUT
|
||||||
echo "extension=$EXTENSION" >> $GITHUB_OUTPUT
|
echo "extension=$EXTENSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: zip .app for MacOS
|
||||||
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
|
run: |
|
||||||
|
cd ./modules/gui/src-tauri/target/release/bundle/macos/ && zip -r tea.zip tea.app
|
||||||
|
|
||||||
- name: cp package images from prod to gui bucket
|
- name: cp package images from prod to gui bucket
|
||||||
env:
|
env:
|
||||||
platform: ${{ steps.build_platform.outputs.build_platform }}
|
platform: ${{ steps.build_platform.outputs.build_platform }}
|
||||||
|
@ -147,9 +167,27 @@ jobs:
|
||||||
aws s3 cp "./modules/gui/src-tauri/target/release/bundle/$extension/tea_0.1.0_$platform.$extension" \
|
aws s3 cp "./modules/gui/src-tauri/target/release/bundle/$extension/tea_0.1.0_$platform.$extension" \
|
||||||
"s3://preview.gui.tea.xyz/release/tea_${{ steps.date.outputs.unix_seconds }}_$platform.$extension"
|
"s3://preview.gui.tea.xyz/release/tea_${{ steps.date.outputs.unix_seconds }}_$platform.$extension"
|
||||||
|
|
||||||
|
- name: cp package zip for MacOS
|
||||||
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
|
env:
|
||||||
|
platform: ${{ steps.build_platform.outputs.build_platform }}
|
||||||
|
build_platform: ${{ matrix.platform.name }}
|
||||||
|
run: |
|
||||||
|
aws s3 cp ./modules/gui/src-tauri/target/release/bundle/macos/tea.zip "s3://preview.gui.tea.xyz/release/tea_${{ steps.date.outputs.unix_seconds }}_$platform.zip"
|
||||||
|
|
||||||
- name: Slack Notification
|
- name: Slack Notification
|
||||||
run: ./.github/notify-slack.js
|
run: ./.github/notify-slack.js
|
||||||
env:
|
env:
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||||
PLATFORM: ${{ matrix.platform.name }}
|
PLATFORM: ${{ matrix.platform.name }}
|
||||||
|
EXT: ${{ steps.build_platform.outputs.extension }}
|
||||||
DOWNLOAD_URL: http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/release/tea_${{ steps.date.outputs.unix_seconds }}_${{ steps.build_platform.outputs.build_platform }}.${{ steps.build_platform.outputs.extension }}
|
DOWNLOAD_URL: http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/release/tea_${{ steps.date.outputs.unix_seconds }}_${{ steps.build_platform.outputs.build_platform }}.${{ steps.build_platform.outputs.extension }}
|
||||||
|
|
||||||
|
- name: Slack Notification for .app Mac
|
||||||
|
run: ./.github/notify-slack.js
|
||||||
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
|
env:
|
||||||
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||||
|
PLATFORM: ${{ matrix.platform.name }}
|
||||||
|
EXT: .zip(.app)
|
||||||
|
DOWNLOAD_URL: http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/release/tea_${{ steps.date.outputs.unix_seconds }}_${{ steps.build_platform.outputs.build_platform }}.zip
|
||||||
|
|
46
.github/workflows/release.yml
vendored
46
.github/workflows/release.yml
vendored
|
@ -70,8 +70,23 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ matrix.platform.name }}-build-target-prod
|
${{ matrix.platform.name }}-build-target-prod
|
||||||
|
|
||||||
- name: test build tauri
|
- name: test build tauri for MacOS
|
||||||
run: pnpm --filter gui tauri build
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
|
# FROM: https://tauri.app/v1/guides/distribution/sign-macos
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
ENABLE_CODE_SIGNING: ${{ secrets.GUI_APPLE_CERTIFICATE }}
|
||||||
|
APPLE_CERTIFICATE: ${{ secrets.GUI_APPLE_CERTIFICATE }}
|
||||||
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.GUI_APPLE_CERTIFICATE_PASSWORD }}
|
||||||
|
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
||||||
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
|
run: pnpm build:gui
|
||||||
|
|
||||||
|
- name: test build tauri for Linux
|
||||||
|
if: matrix.platform.name == 'linux+x86-64'
|
||||||
|
# TODO: https://tauri.app/v1/guides/distribution/sign-linux
|
||||||
|
run: pnpm build:gui
|
||||||
|
|
||||||
- name: Get current unix ts - seconds
|
- name: Get current unix ts - seconds
|
||||||
id: date
|
id: date
|
||||||
|
@ -97,11 +112,38 @@ jobs:
|
||||||
"s3://preview.gui.tea.xyz/release/tea_gui_latest_$platform.$extension"
|
"s3://preview.gui.tea.xyz/release/tea_gui_latest_$platform.$extension"
|
||||||
aws s3 cp "./modules/gui/src-tauri/target/release/bundle/$extension/tea_0.1.0_$platform.$extension" \
|
aws s3 cp "./modules/gui/src-tauri/target/release/bundle/$extension/tea_0.1.0_$platform.$extension" \
|
||||||
"s3://preview.gui.tea.xyz/release/tea_gui_$tag_$platform.$extension"
|
"s3://preview.gui.tea.xyz/release/tea_gui_$tag_$platform.$extension"
|
||||||
|
|
||||||
|
- name: zip .app for MacOS
|
||||||
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
|
run: |
|
||||||
|
cd ./modules/gui/src-tauri/target/release/bundle/macos/ && zip -r tea.zip tea.app
|
||||||
|
|
||||||
|
- name: publish .zip(.app) for MacOS
|
||||||
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
|
env:
|
||||||
|
platform: ${{ steps.build_platform.outputs.build_platform }}
|
||||||
|
extension: ${{ steps.build_platform.outputs.extension }}
|
||||||
|
tag: ${{ steps.tag.outputs.tag }}
|
||||||
|
run: |
|
||||||
|
aws s3 cp "./modules/gui/src-tauri/target/release/bundle/macos/tea.zip" \
|
||||||
|
"s3://preview.gui.tea.xyz/release/tea_gui_latest_$platform.zip"
|
||||||
|
aws s3 cp "./modules/gui/src-tauri/target/release/bundle/macos/tea.zip" \
|
||||||
|
"s3://preview.gui.tea.xyz/release/tea_gui_$tag_$platform.zip"
|
||||||
- name: Slack Notification
|
- name: Slack Notification
|
||||||
run: ./.github/notify-slack.js
|
run: ./.github/notify-slack.js
|
||||||
env:
|
env:
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||||
PLATFORM: ${{ matrix.platform.name }}
|
PLATFORM: ${{ matrix.platform.name }}
|
||||||
VERSION: ${{steps.tag.outputs.tag}}
|
VERSION: ${{steps.tag.outputs.tag}}
|
||||||
|
EXT: ${{ steps.build_platform.outputs.extension }}
|
||||||
DOWNLOAD_URL: http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/release/tea_gui_${{steps.tag.outputs.tag}}_${{steps.build_platform.outputs.build_platform}}.${{ steps.build_platform.outputs.extension }}
|
DOWNLOAD_URL: http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/release/tea_gui_${{steps.tag.outputs.tag}}_${{steps.build_platform.outputs.build_platform}}.${{ steps.build_platform.outputs.extension }}
|
||||||
|
|
||||||
|
- name: Slack Notification for .app Mac
|
||||||
|
run: ./.github/notify-slack.js
|
||||||
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
|
env:
|
||||||
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||||
|
PLATFORM: ${{ matrix.platform.name }}
|
||||||
|
VERSION: ${{steps.tag.outputs.tag}}
|
||||||
|
EXT: .zip(.app)
|
||||||
|
DOWNLOAD_URL: http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/release/tea_gui_${{steps.tag.outputs.tag}}_${{steps.build_platform.outputs.build_platform}}.zip
|
||||||
|
|
|
@ -30,6 +30,7 @@ $ pnpm web:gui
|
||||||
```
|
```
|
||||||
# Build
|
# Build
|
||||||
```sh
|
```sh
|
||||||
|
pnpm install
|
||||||
pnpm build:gui
|
pnpm build:gui
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,3 @@
|
||||||
<News />
|
<News />
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
|
||||||
</style>
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"release": "sh ./.github/update-latest-binary.sh",
|
"release": "sh ./.github/update-latest-binary.sh",
|
||||||
"build:gui": "pnpm --filter gui exec tauri build",
|
"build:gui": "pnpm --filter gui exec tauri build --verbose",
|
||||||
"dev:gui": "pnpm --filter gui exec tauri dev",
|
"dev:gui": "pnpm --filter gui exec tauri dev",
|
||||||
"web:gui": "BUILD_FOR=preview pnpm --filter gui dev"
|
"web:gui": "BUILD_FOR=preview pnpm --filter gui dev"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue