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