Skip to content

Latest commit

 

History

History
106 lines (78 loc) · 2.7 KB

DEVELOP.md

File metadata and controls

106 lines (78 loc) · 2.7 KB

Development

ARCHITECTURE.md

https://github.com/jasperapp/jasper/blob/master/ARCHITECTURE.md

Requirement

supports nodejs v16~

Run as Development

git clone git@github.com:jasperapp/jasper.git
npm i
npm run env:setup
npm run tsc:watch
npm run mac:run

SQLite3

Build on Windows

WindowsでSQLite3をelectron-rebuildでビルドするためにはnpm i windows-build-toolsでビルドツールをインストールする必要がある

What are the requirements?
Node v10.12.0 or higher is required. Building the native modules from source uses node-gyp, refer to the link for its installation/runtime requirements.
Option 1
Install all the required tools and configurations using Microsoft's windows-build-tools using npm install --global windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).
npm install --global windows-build-tools

Build on Linux

Linux(Ubuntu20.04)でビルドするためには以下のパッケージが必要

apt-get install python make gcc g++

Build Production

vi package.json # version
npm run mac:build
open out/mac/Jasper.app

Release

  • change version in package.json
  • build production binary on Mac/Windows/Linux
  • upload to DropBox
  • upload to GitHub Releases
  • update jasperapp.io
    • change version and URL in indexh.html
    • change URL in release.html
    • add the version to {versions-{mac,windows,linux}.json

Icon Cache

# application icon
sudo find /private/var/folders/ -name '*icon*' # and remove those
sudo rm -rf /Library/Caches/com.apple.iconservices.store
killall Dock
touch Jasper.app
touch Jasper.app/Contents/Info.plist

# notification icon
cd `getconf DARWIN_USER_DIR`/com.apple.notificationcenter/db
sqlite3 ./db

Mac App Store Information