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:
15
makedist.sh
15
makedist.sh
@@ -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 ..
|
|
12
package.json
12
package.json
@@ -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",
|
||||||
|
Reference in New Issue
Block a user