release: v0.4.18
chore(tamagotchi,ci): use tauri action from tauri release: v0.4.19 chore(tamagotchi,ci): install missing target chore(tamagotchi,ci): fix workflow dispatch chore(tamagotchi,ci): install missing target chore(tamagotchi,ci): fix wrong condition chore(tamagotchi,ci): still rename artifacts chore(tamagotchi,ci): add missing `target` args chore(tamagotchi,ci): fix missing dirname chore(tamagotchi,ci): fix path chore(tamagotchi,ci): still fix path
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
name: Build Tamagotchi
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -10,30 +13,15 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- os: macos-latest
|
||||
platform: macos
|
||||
target: x86_64-apple-darwin
|
||||
arch: x64
|
||||
artifact: dmg
|
||||
- os: macos-latest
|
||||
platform: macos
|
||||
target: aarch64-apple-darwin
|
||||
arch: aarch64
|
||||
artifact: dmg
|
||||
- os: ubuntu-latest
|
||||
platform: linux
|
||||
target: x86_64-unknown-linux-gnu
|
||||
arch: x86_64
|
||||
artifact: AppImage
|
||||
- os: ubuntu-24.04-arm
|
||||
platform: linux
|
||||
target: aarch64-unknown-linux-gnu
|
||||
arch: aarch64
|
||||
artifact: AppImage
|
||||
- os: windows-latest
|
||||
platform: windows
|
||||
target: x86_64-pc-windows-msvc
|
||||
arch: x64
|
||||
artifact: exe
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -59,13 +47,13 @@ jobs:
|
||||
targets: ${{ matrix.target }}
|
||||
|
||||
- name: install system dependencies (ubuntu only)
|
||||
if: matrix.platform == 'linux' # This must match the platform value defined above.
|
||||
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile --loglevel debug
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build Dependencies
|
||||
run: pnpm run packages:build
|
||||
@@ -73,6 +61,11 @@ jobs:
|
||||
- name: Build Application
|
||||
run: cd apps/stage-tamagotchi-tauri && pnpm tauri build --target ${{ matrix.target }}
|
||||
|
||||
- run: |
|
||||
mv apps/stage-tamagotchi-tauri/src-tauri/target/${{ matrix.target }}/release/bundle/${{ matrix.artifact }}/airi_${{ github.ref_name }}_${{ matrix.arch }}.${{ matrix.artifact }} \
|
||||
tamagotchi-dist/airi-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name }}.${{ matrix.artifact }}
|
||||
- name: Rename Artifacts
|
||||
run: node apps/stage-tamagotchi-tauri/scripts/rename-artifacts.js ${{ matrix.target }}
|
||||
|
||||
- name: Upload To GitHub Releases
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: apps/stage-tamagotchi-tauri/bundle/airi_*
|
||||
append_body: true
|
||||
|
||||
@@ -15,30 +15,15 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- os: macos-latest
|
||||
platform: macos
|
||||
target: x86_64-apple-darwin
|
||||
arch: x64
|
||||
artifact: dmg
|
||||
- os: macos-latest
|
||||
platform: macos
|
||||
target: aarch64-apple-darwin
|
||||
arch: aarch64
|
||||
artifact: dmg
|
||||
- os: ubuntu-latest
|
||||
platform: linux
|
||||
target: x86_64-unknown-linux-gnu
|
||||
arch: amd64
|
||||
artifact: AppImage
|
||||
- os: ubuntu-24.04-arm
|
||||
platform: linux
|
||||
target: aarch64-unknown-linux-gnu
|
||||
arch: aarch64
|
||||
artifact: AppImage
|
||||
- os: windows-latest
|
||||
platform: windows
|
||||
target: x86_64-pc-windows-msvc
|
||||
arch: x64
|
||||
artifact: exe
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -64,7 +49,7 @@ jobs:
|
||||
targets: ${{ matrix.target }}
|
||||
|
||||
- name: install system dependencies (ubuntu only)
|
||||
if: matrix.platform == 'linux' # This must match the platform value defined above.
|
||||
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
||||
@@ -78,37 +63,11 @@ jobs:
|
||||
- name: Build Application
|
||||
run: cd apps/stage-tamagotchi-tauri && pnpm tauri build --target ${{ matrix.target }}
|
||||
|
||||
- run: |
|
||||
ref_without_v=$(echo ${{ github.ref_name }} | sed 's/^v//')
|
||||
lowercase_artifact=$(echo ${{ matrix.artifact }} | tr '[:upper:]' '[:lower:]')
|
||||
mkdir -p tamagotchi-dist
|
||||
mv apps/stage-tamagotchi-tauri/src-tauri/target/${{ matrix.target }}/release/bundle/${lowercase_artifact}/airi_${ref_without_v}_${{ matrix.arch }}.${{ matrix.artifact }} \
|
||||
tamagotchi-dist/airi-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name }}.${{ matrix.artifact }}
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: airi-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name }}
|
||||
path: tamagotchi-dist/airi-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name }}.${{ matrix.artifact }}
|
||||
|
||||
release-tamagotchi:
|
||||
name: Release Tamagotchi
|
||||
runs-on: ubuntu-24.04
|
||||
needs: build-tamagotchi
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
merge-multiple: true
|
||||
path: dist
|
||||
|
||||
- run: ls -la dist
|
||||
- name: Rename Artifacts
|
||||
run: node apps/stage-tamagotchi-tauri/scripts/rename-artifacts.js ${{ matrix.target }}
|
||||
|
||||
- name: Upload To GitHub Releases
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: dist/airi-*
|
||||
files: apps/stage-tamagotchi-tauri/bundle/airi_*
|
||||
append_body: true
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@proj-airi/stage-tamagotchi-tauri",
|
||||
"version": "0.4.17",
|
||||
"type": "module",
|
||||
"version": "0.4.19",
|
||||
"private": true,
|
||||
"description": "Airi tamagotchi app written in Tauri",
|
||||
"author": "LemonNekoGH",
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
import fs from 'node:fs'
|
||||
import { createRequire } from 'node:module'
|
||||
import path from 'node:path'
|
||||
import process from 'node:process'
|
||||
|
||||
const require = createRequire(import.meta.url)
|
||||
const packageJson = require('../package.json')
|
||||
|
||||
const version = packageJson.version
|
||||
const target = process.argv[2]
|
||||
const dirname = import.meta.dirname
|
||||
|
||||
console.log('version: ', version)
|
||||
console.log('target: ', target)
|
||||
|
||||
if (!target) {
|
||||
console.error('Target is required')
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
const srcPrefix = path.join(dirname, '..', 'src-tauri', 'target', target, 'release', 'bundle')
|
||||
const bundlePrefix = path.join(dirname, '..', 'bundle')
|
||||
|
||||
fs.mkdirSync(bundlePrefix)
|
||||
|
||||
switch (target) {
|
||||
case 'x86_64-pc-windows-msvc':
|
||||
fs.renameSync(
|
||||
path.join(srcPrefix, 'nsis', `airi_${version}_x64-setup.exe`),
|
||||
path.join(bundlePrefix, `airi_${version}_windows_amd64-setup.exe`),
|
||||
)
|
||||
break
|
||||
case 'x86_64-unknown-linux-gnu':
|
||||
fs.renameSync(
|
||||
path.join(srcPrefix, 'appimage', `airi_${version}_amd64.AppImage`),
|
||||
path.join(bundlePrefix, `airi_${version}_linux_amd64.AppImage`),
|
||||
)
|
||||
break
|
||||
case 'aarch64-unknown-linux-gnu':
|
||||
fs.renameSync(
|
||||
path.join(srcPrefix, 'appimage', `airi_${version}_aarch64.AppImage`),
|
||||
path.join(bundlePrefix, `airi_${version}_linux_arm64.AppImage`),
|
||||
)
|
||||
break
|
||||
case 'aarch64-apple-darwin':
|
||||
fs.renameSync(
|
||||
path.join(srcPrefix, 'dmg', `airi_${version}_aarch64.dmg`),
|
||||
path.join(bundlePrefix, `airi_${version}_macos_arm64.dmg`),
|
||||
)
|
||||
break
|
||||
case 'x86_64-apple-darwin':
|
||||
fs.renameSync(
|
||||
path.join(srcPrefix, 'dmg', `airi_${version}_x64.dmg`),
|
||||
path.join(bundlePrefix, `airi_${version}_macos_amd64.dmg`),
|
||||
)
|
||||
break
|
||||
default:
|
||||
console.error('Target is not supported')
|
||||
process.exit(1)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@proj-airi/stage-tamagotchi",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"private": true,
|
||||
"description": "An Electron application with Vue and TypeScript",
|
||||
"author": "LemonNekoGH",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@proj-airi/drizzle-duckdb-wasm",
|
||||
"type": "module",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"description": "🦆 Drizzle ORM driver for @duckdb/duckdb-wasm that works on both browser and Node.js environments",
|
||||
"author": {
|
||||
"name": "Neko Ayaka",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@proj-airi/duckdb-wasm",
|
||||
"type": "module",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"description": "Easy to use @duckdb/duckdb-wasm wrapper for both browser and Node.js environments",
|
||||
"author": {
|
||||
"name": "Neko Ayaka",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@proj-airi/elevenlabs",
|
||||
"type": "module",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"description": "Simple wrapper of types of Elevenlabs's SDK",
|
||||
"author": {
|
||||
"name": "Neko Ayaka",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "hfup",
|
||||
"type": "module",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"description": "A collection of tools to help you deploy, bundle HuggingFace Spaces and related assets with ease.",
|
||||
"author": {
|
||||
"name": "Neko Ayaka",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@proj-airi/memory-pgvector",
|
||||
"type": "module",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"author": "",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@proj-airi/server-runtime",
|
||||
"type": "module",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"description": "Server runtime implementation for Airi running in different environments",
|
||||
"author": {
|
||||
"name": "Neko Ayaka",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@proj-airi/server-sdk",
|
||||
"type": "module",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"description": "Client-side SDK implementation for connecting to Airi server components and runtimes",
|
||||
"author": {
|
||||
"name": "Neko Ayaka",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@proj-airi/server-shared",
|
||||
"type": "module",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"description": "Server shared types, utilities for Airi server components and runtimes",
|
||||
"author": {
|
||||
"name": "Neko Ayaka",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@proj-airi/twitter-services",
|
||||
"type": "module",
|
||||
"version": "0.4.17",
|
||||
"version": "0.4.19",
|
||||
"private": true,
|
||||
"description": "Twitter Services for MCP",
|
||||
"author": "RainbowBird <rbxin2003@outlook.com>",
|
||||
|
||||
Reference in New Issue
Block a user