mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 04:12:20 +08:00
fix: build.py
This commit is contained in:
parent
3ed94dcd4f
commit
a13e3bdfba
9
build.py
9
build.py
@ -144,22 +144,21 @@ Description: A remote control software.
|
|||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
def build_flutter_deb(version):
|
def build_flutter_deb(version):
|
||||||
|
os.system('cargo build --features flutter --lib --release')
|
||||||
os.chdir('flutter')
|
os.chdir('flutter')
|
||||||
os.system('dpkg-deb -R rustdesk.deb tmpdeb')
|
os.system('dpkg-deb -R rustdesk.deb tmpdeb')
|
||||||
os.system('flutter build linux --release')
|
os.system('flutter build linux --release')
|
||||||
|
|
||||||
os.system('mkdir -p tmpdeb/usr/bin/')
|
os.system('mkdir -p tmpdeb/usr/bin/')
|
||||||
os.system('mkdir -p tmpdeb/usr/lib/rustdesk')
|
os.system('mkdir -p tmpdeb/usr/lib/rustdesk')
|
||||||
os.system('mkdir -p tmpdeb/usr/share/rustdesk/files/systemd/')
|
os.system('mkdir -p tmpdeb/usr/share/rustdesk/files/systemd/')
|
||||||
os.system('mkdir -p tmpdeb/usr/share/applications/')
|
os.system('mkdir -p tmpdeb/usr/share/applications/')
|
||||||
os.system('mkdir -p tmpdeb/usr/share/polkit-1/actions')
|
os.system('mkdir -p tmpdeb/usr/share/polkit-1/actions')
|
||||||
|
|
||||||
|
os.system('rm tmpdeb/usr/bin/rustdesk')
|
||||||
os.system(
|
os.system(
|
||||||
'cp -r build/linux/x64/release/bundle/* tmpdeb/usr/lib/rustdesk/')
|
'cp -r build/linux/x64/release/bundle/* tmpdeb/usr/lib/rustdesk/')
|
||||||
os.system(
|
os.system(
|
||||||
'pushd tmpdeb && ln -s /usr/lib/rustdesk/flutter_hbb usr/bin/rustdesk && popd')
|
'cp ../target/release/liblibrustdesk.so tmpdeb/usr/lib/rustdesk/librustdesk.so')
|
||||||
os.system(
|
|
||||||
'cp build/linux/x64/release/liblibrustdesk.so tmpdeb/usr/lib/rustdesk/librustdesk.so')
|
|
||||||
os.system(
|
os.system(
|
||||||
'cp ../res/rustdesk.service tmpdeb/usr/share/rustdesk/files/systemd/')
|
'cp ../res/rustdesk.service tmpdeb/usr/share/rustdesk/files/systemd/')
|
||||||
os.system(
|
os.system(
|
||||||
@ -243,7 +242,7 @@ def main():
|
|||||||
else:
|
else:
|
||||||
print('Not signed')
|
print('Not signed')
|
||||||
os.system(f'cp -rf target/release/RustDesk.exe rustdesk-{version}-setdown.exe')
|
os.system(f'cp -rf target/release/RustDesk.exe rustdesk-{version}-setdown.exe')
|
||||||
elif os.path.isfile('/usr/bin/pacman1'):
|
elif os.path.isfile('/usr/bin/pacman'):
|
||||||
# pacman -S -needed base-devel
|
# pacman -S -needed base-devel
|
||||||
os.system("sed -i 's/pkgver=.*/pkgver=%s/g' PKGBUILD" % version)
|
os.system("sed -i 's/pkgver=.*/pkgver=%s/g' PKGBUILD" % version)
|
||||||
if flutter:
|
if flutter:
|
||||||
|
0
res/DEBIAN/postinst
Normal file → Executable file
0
res/DEBIAN/postinst
Normal file → Executable file
0
res/DEBIAN/postrm
Normal file → Executable file
0
res/DEBIAN/postrm
Normal file → Executable file
0
res/DEBIAN/preinst
Normal file → Executable file
0
res/DEBIAN/preinst
Normal file → Executable file
0
res/DEBIAN/prerm
Normal file → Executable file
0
res/DEBIAN/prerm
Normal file → Executable file
Loading…
Reference in New Issue
Block a user