viewsync-master 1.0.7 → 1.0.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.
Files changed (3) hide show
  1. package/icon.png +0 -0
  2. package/index.js +14 -6
  3. package/package.json +1 -1
package/icon.png ADDED
Binary file
package/index.js CHANGED
@@ -93,11 +93,14 @@ async function run() {
93
93
  console.clear();
94
94
 
95
95
  const logo = C + B + `
96
- ▌ ▌▗ ▗ ▛▀▖ ▜
97
- ▌▖▌▄ ▞▀▖▌ ▌▞▀▘▌ ▌▞▀▖ ▙▄▘▞▀▖▙▀▖▞▀▖▙▀▖ ▐
98
- ▙▚▌▐ ▛▀ ▐▐ ▝▀▖▌ ▌▌ ▌ ▌▌ ▌▌ ▐
99
- ▘▀▘▝▀▘ ▀▀ ▝▀▘▌ ▌ ▘ ▝▀ ▝▀ ▘ ▘
100
- [ PROJECT: VIEW-SYNC ] [ v1.0.6 ]
96
+
97
+ _ ___ _____
98
+ | | / (_)__ _ __ / ___/__ ______ _____
99
+ | | / / / _ \\ | /| / / \\__ \\/ / / / __ \\/ ___/
100
+ | |/ / / __/ |/ |/ / ___/ / /_/ / / / / /__
101
+ |___/_/\\___/|__/|__/ /____/\\__, /_/ /_/[___/
102
+ /____/
103
+ [ PROJECT: VIEW-SYNC ] [ v1.0.10 ]
101
104
  ` + Z;
102
105
 
103
106
  console.log(logo);
@@ -128,6 +131,11 @@ async function run() {
128
131
  fs.mkdirSync(targetDir, { recursive: true });
129
132
  }
130
133
  fs.copyFileSync(path.join(__dirname, 'viewsync_main.py'), path.join(targetDir, 'viewsync_main.py'));
134
+ const iconPath = path.join(__dirname, 'icon.png');
135
+ if (fs.existsSync(iconPath)) {
136
+ fs.copyFileSync(iconPath, path.join(targetDir, 'icon.png'));
137
+ }
138
+
131
139
  const helperPath = path.join(__dirname, 'viewsync_helper.py');
132
140
  if (fs.existsSync(helperPath)) {
133
141
  fs.copyFileSync(helperPath, path.join(targetDir, 'viewsync_helper.py'));
@@ -142,7 +150,7 @@ async function run() {
142
150
  Name=ViewSync Master
143
151
  Comment=Live screen cropper & lag-free mirroring
144
152
  Exec=bash -c "python3 ~/.viewsync-master/viewsync_main.py"
145
- Icon=phone
153
+ Icon=${targetDir}/icon.png
146
154
  Terminal=false
147
155
  Type=Application
148
156
  Categories=Utility;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewsync-master",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Live screen cropper and lag-free mirroring.",
5
5
  "main": "index.js",
6
6
  "bin": {