Skip to content

Commit

Permalink
feat: add the manifest to root content
Browse files Browse the repository at this point in the history
  • Loading branch information
karlsbeard committed Mar 20, 2024
1 parent 7fdefcb commit 7f2840c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions manifest.json
@@ -0,0 +1,11 @@
{
"id": "univer",
"name": "Univer Doc and Sheet",
"version": "0.0.3",
"minAppVersion": "0.15.0",
"description": "Create doc and sheet base on Univer in Obsidian.",
"author": "Univer karl gjsss",
"authorUrl": "https://github.com/karlsbeard/obsidian-univer",
"fundingUrl": "https://opencollective.com/univer",
"isDesktopOnly": false
}
5 changes: 3 additions & 2 deletions vite.config.ts
@@ -1,5 +1,5 @@
import { rename, writeFile } from 'node:fs/promises'
import { resolve } from 'node:path'
import { rename, writeFile, copyFile } from 'node:fs/promises'
import { join, resolve } from 'node:path'
import process from 'node:process'
import { defineConfig } from 'vite'
import builtins from 'builtin-modules'
Expand Down Expand Up @@ -27,6 +27,7 @@ function generate(isDev?: boolean) {
fundingUrl: 'https://opencollective.com/univer',
isDesktopOnly: false,
}))
await copyFile(resolve(buildDir, 'manifest.json'), join(process.cwd(), 'manifest.json'))
if (isDev)
await writeFile(resolve(buildDir, '.hotreload'), '')
rename(resolve(buildDir, 'style.css'), resolve(buildDir, 'styles.css'))
Expand Down

0 comments on commit 7f2840c

Please sign in to comment.