mirror of
https://github.com/R0m1k3/TodoFlow.git
synced 2026-10-12 17:58:59 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
278f74326c | ||
|
|
8cebc3c2fa | ||
|
|
9067b93c88 |
No files matched your search
@@ -38,6 +38,22 @@ jobs:
|
||||
cd widget
|
||||
npm install
|
||||
|
||||
- name: Update version in tauri.conf.json
|
||||
shell: bash
|
||||
run: |
|
||||
TAG_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
|
||||
if [[ ! "$TAG_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
|
||||
TAG_VERSION="1.0.0"
|
||||
fi
|
||||
echo "Updating tauri.conf.json version to $TAG_VERSION"
|
||||
node -e "
|
||||
const fs = require('fs');
|
||||
const file = './widget/src-tauri/tauri.conf.json';
|
||||
const config = JSON.parse(fs.readFileSync(file, 'utf8'));
|
||||
config.package.version = '$TAG_VERSION';
|
||||
fs.writeFileSync(file, JSON.stringify(config, null, 2), 'utf8');
|
||||
"
|
||||
|
||||
- name: Build the Tauri app
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
|
||||
@@ -58,9 +58,11 @@
|
||||
{
|
||||
"fullscreen": false,
|
||||
"height": 520,
|
||||
"resizable": false,
|
||||
"resizable": true,
|
||||
"title": "TodoFlow",
|
||||
"width": 340,
|
||||
"minWidth": 280,
|
||||
"minHeight": 400,
|
||||
"decorations": false,
|
||||
"transparent": true,
|
||||
"alwaysOnTop": false,
|
||||
|
||||
+350
-300
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user