Skip to content

Commit

Permalink
Use local AppImage runtime AppImage/type2-runtime#47
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Aug 1, 2024
1 parent 1a6cdc5 commit 8c61c23
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
36 changes: 36 additions & 0 deletions desktopApp/appimage-runtime/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
MIT License

Copyright (c) 2004-23 probonopd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

The AppImage runtime executable contains statically linked code from
the following third party libraries, which are licensed under
the following terms:

* musl libc, licensed under the terms of
https://git.musl-libc.org/cgit/musl/tree/COPYRIGHT
* libfuse, licensed under the terms of
https://github.com/libfuse/libfuse/blob/master/LGPL2.txt
* squashfuse, licensed under the terms of
https://github.com/vasi/squashfuse/blob/master/LICENSE
* libzstd, licensed under the terms of
https://github.com/facebook/zstd/blob/dev/LICENSE
* zlib, licensed under the terms of
https://zlib.net/zlib_license.html
Binary file added desktopApp/appimage-runtime/runtime-x86_64
Binary file not shown.
10 changes: 8 additions & 2 deletions desktopApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,18 @@ abstract class ActuallyPackageAppImageTask: DefaultTask() {
val appimage_output: File = appimage_output_file.get().asFile

runBlocking {
project.logger.lifecycle("Executing appimagetool with arch $arch and output file ${appimage_output.relativeTo(project.rootDir)}")
val runtime_file_path: String = project.file("appimage-runtime/runtime-x86_64").absolutePath
project.logger.lifecycle("Executing appimagetool with arch $arch, output ${appimage_output.relativeTo(project.rootDir)}, and runtime $runtime_file_path")
project.exec {
environment("ARCH", arch)
workingDir = appimage_dst
executable = "appimagetool"
args = listOf(".", appimage_output.absolutePath)
args = listOf(
"--verbose",
"--no-appstream",
"--runtime-file", runtime_file_path,
".", appimage_output.absolutePath
)
}

delay(100)
Expand Down

0 comments on commit 8c61c23

Please sign in to comment.