hsync-cli 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +6 -5
- package/package.json +4 -1
package/dist/bin.js
CHANGED
|
@@ -69090,7 +69090,7 @@ async function configureAutostart(enable) {
|
|
|
69090
69090
|
await fs5.mkdir(autostartDir, { recursive: true });
|
|
69091
69091
|
const content = `[Desktop Entry]
|
|
69092
69092
|
Type=Application
|
|
69093
|
-
Exec=hsync sync start --daemon
|
|
69093
|
+
Exec=bash -ic "hsync sync start --daemon"
|
|
69094
69094
|
Hidden=false
|
|
69095
69095
|
NoDisplay=false
|
|
69096
69096
|
X-GNOME-Autostart-enabled=true
|
|
@@ -69098,7 +69098,6 @@ Name=hsync Autostart Daemon
|
|
|
69098
69098
|
Comment=Start hsync background synchronization daemon on login
|
|
69099
69099
|
`;
|
|
69100
69100
|
await fs5.writeFile(desktopFile, content, "utf8");
|
|
69101
|
-
await fs5.chmod(desktopFile, 493);
|
|
69102
69101
|
console.log(source_default.green("✔ Autostart successfully enabled!"));
|
|
69103
69102
|
console.log(`Created autostart entry: ${desktopFile}`);
|
|
69104
69103
|
} else {
|
|
@@ -71024,7 +71023,7 @@ async function configureAutostart2(enable) {
|
|
|
71024
71023
|
await fs7.mkdir(autostartDir, { recursive: true });
|
|
71025
71024
|
const content = `[Desktop Entry]
|
|
71026
71025
|
Type=Application
|
|
71027
|
-
Exec=hsync sync start --daemon
|
|
71026
|
+
Exec=bash -ic "hsync sync start --daemon"
|
|
71028
71027
|
Hidden=false
|
|
71029
71028
|
NoDisplay=false
|
|
71030
71029
|
X-GNOME-Autostart-enabled=true
|
|
@@ -71032,7 +71031,6 @@ Name=hsync Autostart Daemon
|
|
|
71032
71031
|
Comment=Start hsync background synchronization daemon on login
|
|
71033
71032
|
`;
|
|
71034
71033
|
await fs7.writeFile(desktopFile, content, "utf8");
|
|
71035
|
-
await fs7.chmod(desktopFile, 493);
|
|
71036
71034
|
console.log(source_default.green("✔ Autostart successfully enabled!"));
|
|
71037
71035
|
console.log(`Created autostart entry: ${desktopFile}`);
|
|
71038
71036
|
} else {
|
|
@@ -71518,7 +71516,7 @@ Press Ctrl+C to stop the server...
|
|
|
71518
71516
|
// package.json
|
|
71519
71517
|
var package_default = {
|
|
71520
71518
|
name: "hsync-cli",
|
|
71521
|
-
version: "1.1.
|
|
71519
|
+
version: "1.1.9",
|
|
71522
71520
|
description: "hsync CLI for file sync operations",
|
|
71523
71521
|
bin: {
|
|
71524
71522
|
hsync: "./dist/bin.js"
|
|
@@ -71528,6 +71526,9 @@ var package_default = {
|
|
|
71528
71526
|
"dist/web"
|
|
71529
71527
|
],
|
|
71530
71528
|
main: "./src/index.ts",
|
|
71529
|
+
engines: {
|
|
71530
|
+
bun: ">=1.0"
|
|
71531
|
+
},
|
|
71531
71532
|
scripts: {
|
|
71532
71533
|
dev: "bun --watch src/index.ts",
|
|
71533
71534
|
build: `bun build src/index.ts --compile --define "process.env.DEFAULT_SERVER_URL='https://hsync-backend.giftsh.in'" --outfile dist/hsync`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hsync-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "hsync CLI for file sync operations",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hsync": "./dist/bin.js"
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"dist/web"
|
|
11
11
|
],
|
|
12
12
|
"main": "./src/index.ts",
|
|
13
|
+
"engines": {
|
|
14
|
+
"bun": ">=1.0"
|
|
15
|
+
},
|
|
13
16
|
"scripts": {
|
|
14
17
|
"dev": "bun --watch src/index.ts",
|
|
15
18
|
"build": "bun build src/index.ts --compile --define \"process.env.DEFAULT_SERVER_URL='https://hsync-backend.giftsh.in'\" --outfile dist/hsync",
|