Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit edb645f

Browse files
committed
fix(linux): install binaries to /usr/share instead of /usr/local/lib
[skip ci]
1 parent d688fe8 commit edb645f

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ output/
8686

8787
# Linux Artifacts
8888
debian/DEBIAN/md5sums
89-
debian/usr/local/lib/LunaSea
89+
debian/usr/share/lunasea
9090
*.snap

debian/DEBIAN/postinst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
ln -sf '/usr/local/lib/LunaSea/lunasea' '/usr/local/bin/lunasea'
3+
ln -sf '/usr/share/lunasea/lunasea' '/usr/bin/lunasea'

debian/DEBIAN/postrm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
rm -f '/usr/local/bin/lunasea'
3+
rm -f '/usr/bin/lunasea'

debian/usr/share/applications/lunasea.desktop

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Icon=/usr/share/icons/lunasea.png
55
Terminal=false
66
Type=Application
77
Categories=Utilities;Entertainment;
8-
Exec=/usr/local/bin/lunasea
9-
TryExec=/usr/local/bin/lunasea
8+
Exec=/usr/bin/lunasea
9+
TryExec=/usr/bin/lunasea

scripts/generate_debian.dart

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ void _setVersion(String version) {
1313
}
1414

1515
void _copyBuild() {
16-
const path = 'debian/usr/local/lib';
16+
const path = 'debian/usr/share';
1717

18-
final directory = Directory(path);
18+
final directory = Directory('$path/lunasea');
1919
if (directory.existsSync()) directory.deleteSync(recursive: true);
20-
directory.createSync(recursive: true);
2120

2221
Process.runSync('cp', [
2322
'-r',
@@ -26,7 +25,7 @@ void _copyBuild() {
2625
]);
2726
Process.runSync('mv', [
2827
'$path/bundle',
29-
'$path/LunaSea',
28+
'$path/lunasea',
3029
]);
3130
}
3231

0 commit comments

Comments
 (0)