Skip to content

Commit

Permalink
Release v0.5.0 (#113)
Browse files Browse the repository at this point in the history
* Update release.yml

* Basic Hi-Res support (#71)

* Fixed a bug where avatars could not be obtained (#98)

* UI Improvement and Update dependencies (#110)

* specify maxlength fot most of <input type="text"/>

* specify maxlength for most of <input type="text"/>

* specify maxlength for description

* use radio buttons to select video copyright type

* some refactoring and fix enter empty tag become

* allow all subdomains of bilibili's image/asset hosting

* enable devtools

* show current character count and limits

* limit length of video parts' title

* fix some Svelte a11y warning

* display the last submit time

* fix: "编辑成功: undefined"

* Feature: confirmation prompt on video P removal

* Feature: confirmation prompt on template removal

* No more max length

* Obvious text waring on inputs exceed limits instead

* create-tauri --beta

* gets better

* fix face not loading

* fix openConfigDir

* fix reading biliup/users

* upload still not working

* fix video part uploading

* cover image load but at weird position

* fix account switching

* fix cover image preview

* fix button group

* pre-release build

* update node version for CI

* update CI according to https://github.com/tauri-apps/tauri-action

* change tag name for pre-release.yml

* use actions/checkout@v4

* update pre-release.yml

* fix file drag and drop

* revert get_credential() as the optional parameter is not being used right now

* change back to lib.rs

* bump version to 0.5.0 (#112)

---------

Co-authored-by: ForgQi <34411314+ForgQi@users.noreply.github.com>
Co-authored-by: Joker_ <1465267+JokerQyou@users.noreply.github.com>
Co-authored-by: V Uethya <45510011+123485k@users.noreply.github.com>
  • Loading branch information
4 people authored May 24, 2024
1 parent 41ec5d9 commit 5613089
Show file tree
Hide file tree
Showing 41 changed files with 6,263 additions and 5,587 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "pre-release"
on:
push:
branches:
- "pre-release"

jobs:
publish-tauri:
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: ''
- platform: 'windows-latest'
args: ''

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
- name: install app dependencies
run: npm i
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: "latest"
releaseName: "latest"
releaseBody: |-
See the assets to download this version and install.
> Linux: .deb, .appimage
> macOS: .app, .dmg
> Windows: .exe, .msi
releaseDraft: false
prerelease: true
includeDebug: true
args: ${{ matrix.args }}
34 changes: 23 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,44 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: ''
- platform: 'windows-latest'
args: ''

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: lts/*
- name: install Rust stable
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: install app dependencies and build it
run: yarn && yarn build
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
- name: install app dependencies
run: npm i
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "App v__VERSION__"
releaseBody: |-
releaseBody: |-
See the assets to download this version and install.
> Linux: .deb, .appimage
Expand All @@ -44,3 +55,4 @@ jobs:
releaseDraft: true
prerelease: false
includeDebug: true
args: ${{ matrix.args }}
93 changes: 16 additions & 77 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,85 +1,24 @@
/node_modules/
/public/build/
.vscode
.DS_Store
.idea

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm
node_modules
dist
dist-ssr
*.local

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# FuseBox cache
.fusebox/
src-tauri/config.yaml
src-tauri/cookies.json
*.mp4
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ bilibili投稿客户端,支持Windows,Linux,macOS。
- [x] 多p按照文件名升序、降序
- [ ] 远程部署agent,本地操作
- [ ] 插件系统,如自动录播后上传

## Development
```bash
tauri dev
```
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri + Svelte + TS</title>
</head>

<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 5613089

Please sign in to comment.