Git Product home page Git Product logo

ll-loader's Introduction

Linglong Loader

说明

本项目是演示通过squashfs(也可以通过erofs)将一个可执行程序打包成另外一个自定义格式的可执行文件.其中loader是原目标文件,appid_version_arch.uap是打包后的自定义可执行目标文件.

Getting started

sudo apt install squashfuse fuse -y
mkdir build && cd build 
cmake .. && make -j1

# 剥离调试符号(可以不做) 
strip bin/linglong-loader
# 制作 data.sqsfs
mkdir work
cd work
touch loader
# loader中输入以下内容,loader模拟直正的应用中的二进制

#!/bin/bash
echo "This is a Default Loader"
echo $@

# 给loader增加执行权限
chmod +x loader
cd ..
mksquashfs work/loader work/* data.sqsfs -comp xz
cat bin/linglong-loader data.sqsfs > appid_version_arch.uap
chmod +x appid_version_arch.uap

ll-loader's People

Contributors

hqh2010 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.