Skip to content

Commit

Permalink
refactor: test build package
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Jun 27, 2024
1 parent 4282131 commit 5a5c041
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 16 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: distributions release

on:
push:
pull_request:
branches: [master]

concurrency:
Expand All @@ -12,23 +12,29 @@ jobs:
pre-release:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- platform: 'macos-latest'
args: '--target universal-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: ''
- platform: 'windows-latest'
args: ''
node-version: [20.x]
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.platform }}

steps:
- name: Github checkout
uses: actions/checkout@v4
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
if: matrix.os == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-latest'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: install dependencies (ubuntu only)
if: matrix.os == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
Expand Down Expand Up @@ -72,13 +78,14 @@ jobs:
tagName: ${{ steps.tag_release.outputs.version }}
releaseName: ${{ steps.tag_release.outputs.version }}
appVersion: "${{ steps.tag_release.outputs.versionNumber }}"
args: ${{ matrix.args }}
releaseBody: |
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
releaseDraft: false
prerelease: false
releaseDraft: true
prerelease: true


# - name: Distribute artifacts to R2
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dockit",
"private": true,
"type": "module",
"version": "0.3.2",
"version": "0.3.3",
"description": "A faster, better and more stable NoSQL desktop tools",
"author": "geekfun <[email protected]>",
"homepage": "ttps://dockit.geekfun.club",
Expand All @@ -19,7 +19,8 @@
"lint:fix": "eslint --fix ./",
"lint:check": "eslint ./",
"test": "jest --runInBand --coverage --coverageReporters json-summary text html lcov",
"test:ci": "jest --runInBand --ci --coverage --coverageReporters json-summary text html lcov"
"test:ci": "jest --runInBand --ci --coverage --coverageReporters json-summary text html lcov",
"build:macos": "tauri build -t universal-apple-darwin"
},
"dependencies": {
"@tauri-apps/api": "^1",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "DocKit",
"version": "0.0.0"
"version": "../package.json"
},
"tauri": {
"allowlist": {
Expand Down
4 changes: 0 additions & 4 deletions src/config/index.ts

This file was deleted.

0 comments on commit 5a5c041

Please sign in to comment.