viewsync-master 1.0.8 → 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 +6 -1
  3. package/package.json +1 -1
package/icon.png ADDED
Binary file
package/index.js CHANGED
@@ -131,6 +131,11 @@ async function run() {
131
131
  fs.mkdirSync(targetDir, { recursive: true });
132
132
  }
133
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
+
134
139
  const helperPath = path.join(__dirname, 'viewsync_helper.py');
135
140
  if (fs.existsSync(helperPath)) {
136
141
  fs.copyFileSync(helperPath, path.join(targetDir, 'viewsync_helper.py'));
@@ -145,7 +150,7 @@ async function run() {
145
150
  Name=ViewSync Master
146
151
  Comment=Live screen cropper & lag-free mirroring
147
152
  Exec=bash -c "python3 ~/.viewsync-master/viewsync_main.py"
148
- Icon=phone
153
+ Icon=${targetDir}/icon.png
149
154
  Terminal=false
150
155
  Type=Application
151
156
  Categories=Utility;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewsync-master",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Live screen cropper and lag-free mirroring.",
5
5
  "main": "index.js",
6
6
  "bin": {