mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
fix(linux): install binaries to /usr/share instead of /usr/local/lib
[skip ci]
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -86,5 +86,5 @@ output/
|
||||
|
||||
# Linux Artifacts
|
||||
debian/DEBIAN/md5sums
|
||||
debian/usr/local/lib/LunaSea
|
||||
debian/usr/share/lunasea
|
||||
*.snap
|
||||
|
||||
2
debian/DEBIAN/postinst
vendored
2
debian/DEBIAN/postinst
vendored
@@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
ln -sf '/usr/local/lib/LunaSea/lunasea' '/usr/local/bin/lunasea'
|
||||
ln -sf '/usr/share/lunasea/lunasea' '/usr/bin/lunasea'
|
||||
|
||||
2
debian/DEBIAN/postrm
vendored
2
debian/DEBIAN/postrm
vendored
@@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -f '/usr/local/bin/lunasea'
|
||||
rm -f '/usr/bin/lunasea'
|
||||
|
||||
@@ -5,5 +5,5 @@ Icon=/usr/share/icons/lunasea.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Utilities;Entertainment;
|
||||
Exec=/usr/local/bin/lunasea
|
||||
TryExec=/usr/local/bin/lunasea
|
||||
Exec=/usr/bin/lunasea
|
||||
TryExec=/usr/bin/lunasea
|
||||
|
||||
@@ -13,11 +13,10 @@ void _setVersion(String version) {
|
||||
}
|
||||
|
||||
void _copyBuild() {
|
||||
const path = 'debian/usr/local/lib';
|
||||
const path = 'debian/usr/share';
|
||||
|
||||
final directory = Directory(path);
|
||||
final directory = Directory('$path/lunasea');
|
||||
if (directory.existsSync()) directory.deleteSync(recursive: true);
|
||||
directory.createSync(recursive: true);
|
||||
|
||||
Process.runSync('cp', [
|
||||
'-r',
|
||||
@@ -26,7 +25,7 @@ void _copyBuild() {
|
||||
]);
|
||||
Process.runSync('mv', [
|
||||
'$path/bundle',
|
||||
'$path/LunaSea',
|
||||
'$path/lunasea',
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user