Compare commits
No commits in common. "00fcee6ac8377fe4ee5c159f6f099b1918535e4f" and "6c29f57d61086ce3c67359d4da03f2d085b97692" have entirely different histories.
00fcee6ac8
...
6c29f57d61
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,5 +13,3 @@ npm-debug.log
|
|||||||
.Trashes
|
.Trashes
|
||||||
|
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
|
|
||||||
.vscode
|
|
||||||
|
@ -11,9 +11,7 @@ Electron build and auto update service, application distribution. Making applica
|
|||||||
|
|
||||||
A git repository corresponds to an electron app and an distributed system.
|
A git repository corresponds to an electron app and an distributed system.
|
||||||
|
|
||||||
Electron Distribution server-side work in 64 bit Linux OS (required) and MacOS (optional), and build for x64 platform, other platform need to modify the code (It is easy).
|
Electron Distribution server-side work in 64 bit Linux OS (required) and MacOS (optional), and build for x64 platfrom, other platfrom need to modify the code (It is easy).
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Quick Setup Guide
|
## Quick Setup Guide
|
||||||
|
|
||||||
@ -176,7 +174,3 @@ Run the `ssh macName@macIp` in the linux server at least once .
|
|||||||
Run the `ssh linux@linuxIp` in the mac server at least once.
|
Run the `ssh linux@linuxIp` in the mac server at least once.
|
||||||
|
|
||||||
Install `rsync` and enable sshd in your Linux Server.
|
Install `rsync` and enable sshd in your Linux Server.
|
||||||
|
|
||||||
## Author
|
|
||||||
|
|
||||||
Yi Wang a@wyr.me
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "electron-distribution",
|
"name": "electron-distribution",
|
||||||
"version": "1.0.4",
|
"version": "1.0.3",
|
||||||
"description": "Electron Distribution",
|
"description": "Electron Distribution",
|
||||||
"author": "yi-ge <a@wyr.me>",
|
"author": "yi-ge <a@wyr.me>",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
BIN
preview.png
BIN
preview.png
Binary file not shown.
Before Width: | Height: | Size: 707 KiB |
@ -65,7 +65,7 @@ const gitCodeUpdate = async (buidType) => {
|
|||||||
} else {
|
} else {
|
||||||
resolve({
|
resolve({
|
||||||
code: 1,
|
code: 1,
|
||||||
type: 'pull',
|
type: 'clone',
|
||||||
change: false
|
change: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -75,19 +75,18 @@ const gitCodeUpdate = async (buidType) => {
|
|||||||
|
|
||||||
const promiseList = []
|
const promiseList = []
|
||||||
|
|
||||||
// 无论是否包含mac,都应该更新参照代码
|
if (buidType.includes('mac')) {
|
||||||
// if (buidType.includes('mac')) {
|
if (!fs.existsSync(sourcePath)) {
|
||||||
if (!fs.existsSync(sourcePath)) {
|
mkdirsSync(sourcePath)
|
||||||
mkdirsSync(sourcePath)
|
|
||||||
promiseList.push(gitClone(repoPath, sourcePath, 'Source'))
|
|
||||||
} else {
|
|
||||||
if (fs.readdirSync(sourcePath).includes('.git')) {
|
|
||||||
promiseList.push(gitPull(sourcePath, 'Source'))
|
|
||||||
} else {
|
|
||||||
promiseList.push(gitClone(repoPath, sourcePath, 'Source'))
|
promiseList.push(gitClone(repoPath, sourcePath, 'Source'))
|
||||||
|
} else {
|
||||||
|
if (fs.readdirSync(sourcePath).includes('.git')) {
|
||||||
|
promiseList.push(gitPull(sourcePath, 'Source'))
|
||||||
|
} else {
|
||||||
|
promiseList.push(gitClone(repoPath, sourcePath, 'Source'))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
if (buidType.includes('linux')) {
|
if (buidType.includes('linux')) {
|
||||||
if (!fs.existsSync(linuxPath)) {
|
if (!fs.existsSync(linuxPath)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user