1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-02 12:20:05 +02:00

build for win and linux

This commit is contained in:
s2
2019-06-17 17:57:18 +02:00
parent 769ea1ce73
commit 67be0c888e
2 changed files with 6 additions and 21 deletions

View File

@@ -1,15 +0,0 @@
#/bin/bash
rm -rf dist
mkdir dist
node_modules/.bin/electron-packager ./app/ gitlit --all --out dist/
cd dist
for d in *; do
if [[ -d "$d" ]]; then
tar czf "$d.tgz" "$d"
rm -rf "$d"
fi
done
cd ..

View File

@@ -5,20 +5,20 @@
"main": "app/main.js",
"build": {
"appId": "s2.gitlit",
"win": {
"linux": {
"target": [
{
"target": "zip",
"target": "tar.gz",
"arch": [
"x64"
]
}
]
},
"linux": {
"win": {
"target": [
{
"target": "tar.gz",
"target": "zip",
"arch": [
"x64"
]
@@ -45,8 +45,8 @@
},
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder"
"pack": "electron-builder --linux --win --dir",
"dist": "electron-builder --linux --win"
},
"repository": {
"type": "git",