Skip to content

Commit 116d6bc

Browse files
authored
🎉 v1.0.0+10 Released.
Merged v1.0.0+10 -source branch.
2 parents b5b35bc + b298e66 commit 116d6bc

File tree

9 files changed

+44
-40
lines changed

9 files changed

+44
-40
lines changed

lib/config/assets/generators/linux_app_finder.dart

+36-32
Original file line numberDiff line numberDiff line change
@@ -129,42 +129,46 @@ class LinuxAppFinder {
129129
if (!isAppEntry(contents)) {
130130
return;
131131
}
132-
List<String> lines = contents.split('\n');
133-
String name =
134-
lines.where((line) => line.startsWith('Name=')).first.substring(5);
135-
String icon =
136-
lines.where((line) => line.startsWith('Icon=')).first.substring(5);
137-
String exe =
138-
lines.where((line) => line.startsWith('Exec=')).first.substring(5);
139-
// completing icon path if incomplete
140-
bool found = icon.contains('/');
141-
bool foundInPixmaps = false;
142-
if (!found) {
143-
Directory pixmapsDir = Directory('/usr/share/pixmaps');
144-
var icons = pixmapsDir.listSync();
145-
for (var entity in icons) {
146-
if (entity.path.contains("/$icon.")) {
147-
icon = entity.path;
148-
foundInPixmaps = true;
149-
break;
132+
try {
133+
List<String> lines = contents.split('\n').toList();
134+
String name =
135+
lines.firstWhere((line) => line.startsWith('Name=')).substring(5);
136+
String icon =
137+
lines.firstWhere((line) => line.startsWith('Icon=')).substring(5);
138+
String exe =
139+
lines.firstWhere((line) => line.startsWith('Exec=')).substring(5);
140+
// completing icon path if incomplete
141+
bool found = icon.contains('/');
142+
bool foundInPixmaps = false;
143+
if (!found) {
144+
Directory pixmapsDir = Directory('/usr/share/pixmaps');
145+
var icons = pixmapsDir.listSync();
146+
for (var entity in icons) {
147+
if (entity.path.contains("/$icon.")) {
148+
icon = entity.path;
149+
foundInPixmaps = true;
150+
break;
151+
}
150152
}
151153
}
152-
}
153-
if (!foundInPixmaps) {
154-
String? inferredIcon = _searchIconsFromIconThemes(icon);
155-
if (inferredIcon != null) {
156-
icon = inferredIcon;
154+
if (!foundInPixmaps) {
155+
String? inferredIcon = _searchIconsFromIconThemes(icon);
156+
if (inferredIcon != null) {
157+
icon = inferredIcon;
158+
}
157159
}
158-
}
159-
if (File(icon).existsSync()) {
160-
if (checkImageValidity(icon)) {
161-
apps.add(App(
162-
name: name,
163-
iconPath: icon,
164-
exe: exe,
165-
internallyGenerated: true,
166-
));
160+
if (File(icon).existsSync()) {
161+
if (checkImageValidity(icon)) {
162+
apps.add(App(
163+
name: name,
164+
iconPath: icon,
165+
exe: exe,
166+
internallyGenerated: true,
167+
));
168+
}
167169
}
170+
} catch (e) {
171+
// ignore
168172
}
169173
}
170174

lib/constants/app_meta_info.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class AppMetaInfo {
22
AppMetaInfo._();
33

4-
static const version = "v1.0.0+9";
4+
static const version = "v1.0.0+10";
55
static const sourceCodeUrl = "https://github.com/omegaui/app-fleet";
66
static const releasePageUrl =
77
"https://github.com/omegaui/app-fleet/releases/latest";

network-install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ echo "and will add the workspace launcher to $HOME/.config/autostart directory."
66
echo ">> Step 1: Downloading the latest precompiled bundle ..."
77
mkdir app-fleet-bundle
88
cd app-fleet-bundle
9-
wget "https://github.com/omegaui/app_fleet/releases/download/v1.0.0%2B9/app-fleet-bundle.zip" --output-document='app-fleet-bundle.zip'
9+
wget "https://github.com/omegaui/app_fleet/releases/download/v1.0.0%2B10/app-fleet-bundle.zip" --output-document='app-fleet-bundle.zip'
1010
echo ">> Step 2: Extracting the downloaded bundle ..."
1111
unzip "app-fleet-bundle.zip"
1212
echo ">> Step 3: Removing the downloaded bundle to save space ..."

network-update.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ echo "and will re-add the workspace launcher to $HOME/.config/autostart director
66
echo ">> Step 1: Downloading the latest precompiled bundle ..."
77
mkdir app-fleet-bundle
88
cd app-fleet-bundle
9-
wget "https://github.com/omegaui/app_fleet/releases/download/v1.0.0%2B9/app-fleet-bundle.zip" --output-document='app-fleet-bundle.zip'
9+
wget "https://github.com/omegaui/app_fleet/releases/download/v1.0.0%2B10/app-fleet-bundle.zip" --output-document='app-fleet-bundle.zip'
1010
echo ">> Step 2: Extracting the downloaded bundle ..."
1111
unzip "app-fleet-bundle.zip"
1212
echo ">> Step 3: Removing the downloaded bundle to save space ..."
Loading
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"app_name": "app_fleet",
33
"version": "1.0.0",
4-
"build_number": "9",
4+
"build_number": "10",
55
"package_name": "app_fleet"
66
}
0 Bytes
Binary file not shown.

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: A brilliant workspace manager & quick launcher specially designed f
33

44
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
55

6-
version: 1.0.0+9
6+
version: 1.0.0+10
77

88
environment:
99
sdk: '>=3.1.3 <4.0.0'

updates/latest.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"latest": "v1.0.0+9",
3-
"url": "https://github.com/omegaui/app_fleet/releases/download/v1.0.0+9/app-fleet-bundle.zip",
2+
"latest": "v1.0.0+10",
3+
"url": "https://github.com/omegaui/app_fleet/releases/download/v1.0.0+10/app-fleet-bundle.zip",
44
"size": "25.5 MB",
5-
"title": "Build 9"
5+
"title": "Build 10"
66
}

0 commit comments

Comments
 (0)