Skip to content

Commit

Permalink
Merge pull request tw93#717 from YangguangZhou/master
Browse files Browse the repository at this point in the history
Add Safe Domain in Github Action and Optimize imgs
  • Loading branch information
tw93 authored May 29, 2024
2 parents 166885a + 80bd3f3 commit 06870e5
Show file tree
Hide file tree
Showing 17 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pake-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ on:
description: '[Height, Optional]'
required: false
default: '780'
safe_domain:
description: '[Safe Domain, Optional]'
required: false
hide_title_bar:
description: '[Hide TitleBar, Optional, MacOS only]'
required: false
Expand Down Expand Up @@ -129,6 +132,7 @@ jobs:
RESIZE: ${{ inputs.resize }}
MULTI_ARCH: ${{ inputs.multi_arch }}
TARGETS: ${{ inputs.targets }}
SAFE_DOMAIN: ${{ inputs.safe_domain }}

- name: Upload archive
uses: actions/upload-artifact@v3
Expand Down
7 changes: 4 additions & 3 deletions script/build_with_pake_cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ console.log('hide-title-bar: ', process.env.HIDE_TITLE_BAR);
console.log('resize: ', process.env.RESIZE);
console.log('is multi arch? only for Mac: ', process.env.MULTI_ARCH);
console.log('targets type? only for Linux: ', process.env.TARGETS);
console.log('safe-domain: ', process.env.SAFE_DOMAIN);
console.log('===========================\n');

cd('node_modules/pake-cli');
Expand All @@ -39,11 +40,11 @@ if (process.env.TARGETS) {
params = `${params} --targets ${process.env.TARGETS}`;
}

if (process.platform === 'win32') {
params = `${params} --show-system-tray`;
if (process.env.SAFE_DOMAIN) {
params = `${params} --safe-domain ${process.env.SAFE_DOMAIN}`;
}

if (process.platform === 'linux') {
if (process.platform === 'win32' || process.platform === 'linux') {
params = `${params} --show-system-tray`;
}

Expand Down
Binary file modified src-tauri/png/chatgpt_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/coderunner_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/flomo_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/icon_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/lizhi_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/poe_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/programmusic_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/qwerty_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/reference_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/twitter_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/wechat_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/weread_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/xiaohongshu_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/youtube_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/png/youtubemusic_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06870e5

Please sign in to comment.