1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-01-27 23:59:49 +01:00

48 lines
2.1 KiB
Makefile
Raw Normal View History

2019-01-02 23:07:29 +09:00
.PHONY: all install clean
VERSION = 1.0.0
2019-04-24 21:25:11 +09:00
all: build mac linux win32 win64
2019-01-02 23:07:29 +09:00
install: package.json
2020-09-13 17:13:22 +09:00
yarn install
2019-01-02 23:07:29 +09:00
2019-04-24 21:25:11 +09:00
build: install
2020-09-13 17:13:22 +09:00
yarn run build
2019-04-24 21:25:11 +09:00
2019-01-02 23:07:29 +09:00
mac:
2020-09-13 17:13:22 +09:00
yarn run package:mac
2021-08-04 22:18:02 +09:00
mv build/Whalebird-${VERSION}-mac-x64.dmg build/Whalebird-${VERSION}-darwin-x64.dmg
2021-05-07 02:00:27 +09:00
mv build/Whalebird-${VERSION}-mac-arm64.dmg build/Whalebird-${VERSION}-darwin-arm64.dmg
mv build/Whalebird-${VERSION}-mac-universal.dmg build/Whalebird-${VERSION}-darwin-universal.dmg
2022-01-04 13:14:09 +09:00
cd build; shasum -a 256 Whalebird-${VERSION}-darwin-universal.dmg | awk '{ print $1 }' > Whalebird-${VERSION}-darwin-universal.dmg.shasum
2019-01-02 23:07:29 +09:00
2019-09-18 01:08:36 +09:00
mas:
2021-03-28 23:13:45 +09:00
yarn run build:clean
2020-09-13 17:13:22 +09:00
yarn run build:mas
2019-09-18 01:08:36 +09:00
./appStore.sh
2019-01-02 23:07:29 +09:00
linux:
2020-09-13 17:13:22 +09:00
yarn run package:linux
mv build/Whalebird-${VERSION}-linux-amd64.deb build/Whalebird-${VERSION}-linux-x64.deb
mv build/Whalebird-${VERSION}-linux-x86_64.rpm build/Whalebird-${VERSION}-linux-x64.rpm
mv build/Whalebird-${VERSION}-linux-x86_64.AppImage build/Whalebird-${VERSION}-linux-x64.AppImage
cd build; sha256sum Whalebird-${VERSION}-linux-arm64.tar.bz2 | awk '{ print $1 }' > Whalebird-${VERSION}-linux-arm64.tar.bz2.shasum
cd build; sha256sum Whalebird-${VERSION}-linux-x64.AppImage | awk '{ print $1 }' > Whalebird-${VERSION}-linux-x64.AppImage.shasum
cd build; sha256sum Whalebird-${VERSION}-linux-x64.deb | awk '{ print $1 }' > Whalebird-${VERSION}-linux-x64.deb.shasum
cd build; sha256sum Whalebird-${VERSION}-linux-x64.rpm | awk '{ print $1 }' > Whalebird-${VERSION}-linux-x64.rpm.shasum
cd build; sha256sum Whalebird-${VERSION}-linux-x64.tar.bz2 | awk '{ print $1 }' > Whalebird-${VERSION}-linux-x64.tar.bz2.shasum
2019-01-02 23:07:29 +09:00
win32:
2020-09-13 17:13:22 +09:00
yarn run package:win32
2021-08-04 21:47:46 +09:00
mv build/Whalebird-${VERSION}-win-ia32.exe build/Whalebird-${VERSION}-windows-ia32.exe
cd build; sha256sum Whalebird-${VERSION}-windows-ia32.exe | awk '{ print $1 }' > Whalebird-${VERSION}-windows-ia32.exe.shasum
win64:
2020-09-13 17:13:22 +09:00
yarn run package:win64
2021-08-04 21:47:46 +09:00
mv build/Whalebird-${VERSION}-win-x64.exe build/Whalebird-${VERSION}-windows-x64.exe
cd build; sha256sum Whalebird-${VERSION}-windows-x64.exe | awk '{ print $1 }' > Whalebird-${VERSION}-windows-x64.exe.shasum
2019-01-02 23:07:29 +09:00
clean:
2020-09-13 17:13:22 +09:00
yarn run build:clean