build rpm and freebsd package

This commit is contained in:
audric 2021-08-11 13:59:03 +10:00
parent c58312e853
commit f84fa2492f
3 changed files with 9 additions and 5 deletions

View File

@ -76,7 +76,9 @@ jobs:
- name: Build linux production binaries - name: Build linux production binaries
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: yarn build-release run: |
sudo apt-get install -y rpm
yarn build-release
- name: Remove unpacked files - name: Remove unpacked files
run: | run: |

View File

@ -73,4 +73,6 @@ jobs:
- name: Build linux production binaries - name: Build linux production binaries
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: yarn build-release-publish run: |
sudo apt-get install -y rpm
yarn build-release-publish

View File

@ -51,8 +51,8 @@
"clean-transpile": "rimraf 'ts/**/*.js ts/*.js' 'ts/*.js.map' 'ts/**/*.js.map' && rimraf tsconfig.tsbuildinfo;", "clean-transpile": "rimraf 'ts/**/*.js ts/*.js' 'ts/*.js.map' 'ts/**/*.js.map' && rimraf tsconfig.tsbuildinfo;",
"ready": "yarn clean-transpile; yarn grunt && yarn lint-full && yarn test", "ready": "yarn clean-transpile; yarn grunt && yarn lint-full && yarn test",
"build:webpack:sql-worker": "cross-env NODE_ENV=production webpack -c webpack-sql-worker.config.ts", "build:webpack:sql-worker": "cross-env NODE_ENV=production webpack -c webpack-sql-worker.config.ts",
"sedtoAppImage": "sed -i 's/\"target\": \"deb\"/\"target\": \"AppImage\"/g' package.json", "sedtoAppImage": "sed -i 's/\"target\": [\"deb\", \"rpm\", \"freebsd\"]/\"target\": \"AppImage\"/g' package.json",
"sedtoDeb": "sed -i 's/\"target\": \"AppImage\"/\"target\": \"deb\"/g' package.json" "sedtoDeb": "sed -i 's/\"target\": \"AppImage\"/\"target\": [\"deb\", \"rpm\", \"freebsd\"]/g' package.json"
}, },
"dependencies": { "dependencies": {
"@reduxjs/toolkit": "^1.4.0", "@reduxjs/toolkit": "^1.4.0",
@ -275,7 +275,7 @@
"StartupWMClass": "Session" "StartupWMClass": "Session"
}, },
"asarUnpack": "node_modules/spellchecker/vendor/hunspell_dictionaries", "asarUnpack": "node_modules/spellchecker/vendor/hunspell_dictionaries",
"target": "deb", "target": ["deb", "rpm", "freebsd"],
"icon": "build/icon.icns" "icon": "build/icon.icns"
}, },
"asarUnpack": [ "asarUnpack": [