mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-24 16:01:20 +01:00
Merge pull request #4009 from h3poteto/iss-2264
refs #2264 Change appId
This commit is contained in:
commit
88415777d5
@ -1,88 +0,0 @@
|
||||
## Release
|
||||
### Build
|
||||
At first, you have to build.
|
||||
|
||||
```bash
|
||||
$ make build
|
||||
```
|
||||
|
||||
This command only generate javascript codes for Electron, so if you want to create release package, please read following document.
|
||||
|
||||
### Binary
|
||||
I use `electron-builder` to create package, but it is hidden by Makefile. So you can use make command.
|
||||
|
||||
```bash
|
||||
# for linux
|
||||
$ make linux VERSION=2.8.0
|
||||
|
||||
# for 64 bit Windows
|
||||
$ make wi64 VERSION=2.8.0
|
||||
```
|
||||
|
||||
You have to use macOS to build packages for macOS.
|
||||
And you have to install certificates for Mac Application.
|
||||
|
||||
- Mac App Distribution: `Developer ID Application: Akira Fukushima (DR9TBDD8DFM)`
|
||||
- Mac App Installer Distribution: `Developer ID Application: Akira Fukushima (DR9TBDD8DFM)`
|
||||
|
||||
Then use make command.
|
||||
|
||||
```bash
|
||||
# for mac
|
||||
$ make mac VERSION=2.8.0
|
||||
```
|
||||
This command automatically loads the Developer ID Application certificate from your keychain.
|
||||
If you want to specify a certificate, please set `CSC_NAME` before this command.
|
||||
|
||||
|
||||
```bash
|
||||
$ export CSC_NAME="Akira Fukushima (DR9TBDD8DFM)"
|
||||
$ make mac VERSION=2.8.0
|
||||
```
|
||||
|
||||
### AppStore
|
||||
|
||||
Please prepare certificates on your Apple developer console. The following keys are required:
|
||||
|
||||
- Mac App Distribution: `3rd Party Mac Developer Application: Akira Fukushima (DR9TBDD8DFM)`
|
||||
- Mac Installer Distribution: `3rd Party Mac Developer Installer: Akira Fukushima (DR9TBDD8DFM)`
|
||||
|
||||
and register your KeyChain.
|
||||
|
||||
Then, create a Mac App ID like `org.whalebird.desktop`.
|
||||
|
||||
```bash
|
||||
$ yarn run build:mas
|
||||
|
||||
# This command automatically loads the certificates from you keychain.
|
||||
$ ./appStore.sh
|
||||
```
|
||||
|
||||
After that, the `.pkg` file is created under `./packages`.
|
||||
|
||||
Please upload the `.pkg` to App Store using Application Loader in Xcode.
|
||||
|
||||
### Snapcraft
|
||||
|
||||
First, please prepare snapcraft command.
|
||||
|
||||
```bash
|
||||
$ brew install snapcraft
|
||||
```
|
||||
or
|
||||
|
||||
```bash
|
||||
$ snap install snapcraft --classic
|
||||
```
|
||||
|
||||
Build command for linux generates a snap file.
|
||||
|
||||
```bash
|
||||
$ make linux VERSION=2.8.0
|
||||
```
|
||||
|
||||
And upload.
|
||||
|
||||
```bash
|
||||
$ snapcraft push build/Whalebird-2.8.0-linux-amd64.snap --release beta
|
||||
```
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"productName": "Whalebird",
|
||||
"appId": "org.whalebird.desktop",
|
||||
"appId": "social.whalebird.desktop",
|
||||
"artifactName": "${productName}-${version}-${os}-${arch}.${ext}",
|
||||
"directories": {
|
||||
"output": "build"
|
||||
|
@ -28,7 +28,7 @@
|
||||
"build": "node .electron-vue/build.js",
|
||||
"build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js",
|
||||
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
|
||||
"build:mas": "yarn run build:clean && yarn run pack && electron-packager ./ 'Whalebird' --platform=mas --arch=x64 --arch=arm64 --electron-version=19.1.9 --asar.unpackDir='build/sounds' --out=packages --ignore='^/src' --ignore='^/.electron-vue' --ignore='^/.envrc' --ignore='^/packages' --ignore='^/plist' --ignore='^/static' --ignore='^/whalebird.db' --ignore='^/screenshot.png' --prune=true --icon=./build/icons/icon.icns --overwrite --app-bundle-id=org.whalebird.desktop --app-version=$npm_package_config_appVersion --build-version=$npm_package_config_buildVersion --extend-info='./plist/team.plist' --app-category-type=public.app-category.social-networking && node ./packages/universal.js",
|
||||
"build:mas": "yarn run build:clean && yarn run pack && electron-packager ./ 'Whalebird' --platform=mas --arch=x64 --arch=arm64 --electron-version=19.1.9 --asar.unpackDir='build/sounds' --out=packages --ignore='^/src' --ignore='^/.electron-vue' --ignore='^/.envrc' --ignore='^/packages' --ignore='^/plist' --ignore='^/static' --ignore='^/whalebird.db' --ignore='^/screenshot.png' --prune=true --icon=./build/icons/icon.icns --overwrite --app-bundle-id=social.whalebird.desktop --app-version=$npm_package_config_appVersion --build-version=$npm_package_config_buildVersion --extend-info='./plist/team.plist' --app-category-type=public.app-category.social-networking && node ./packages/universal.js",
|
||||
"package:mac": "electron-builder --mac --publish never --config electron-builder.json",
|
||||
"package:linux": "electron-builder --linux --publish never --config electron-builder.json",
|
||||
"package:win32": "electron-builder --win --ia32 --publish never --config electron-builder.json",
|
||||
|
@ -5,7 +5,7 @@
|
||||
<key>com.apple.security.app-sandbox</key>
|
||||
<true/>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<string>HB4N6B2YVM.org.whalebird.desktop</string>
|
||||
<string>HB4N6B2YVM.social.whalebird.desktop</string>
|
||||
<key>com.apple.security.files.user-selected.read-only</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.client</key>
|
||||
|
@ -107,7 +107,7 @@ if (process.platform !== 'darwin') {
|
||||
}
|
||||
}
|
||||
|
||||
const appId = 'org.whalebird.desktop'
|
||||
const appId = 'social.whalebird.desktop'
|
||||
|
||||
const splashURL =
|
||||
process.env.NODE_ENV === 'development'
|
||||
|
Loading…
Reference in New Issue
Block a user