Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simply-static domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
树莓派下打包自己的安装程序

树莓派下打包自己的安装程序

以打包codon为例
mkdir codon && cd codon
mkdir DEBIAN usr && cd usr && mkdir bin
cd DEBIAN
nano control


Package: codon
Version: 1.0.0
Architecture: arm64
Maintainer: jack
Secion: utils
Priority: optional
Installed_Size: #可以空白
Description: codon package
#此处要空一行

sudo dpkg -b codon
dpkg-name codon.deb #改名
sudo dpkg -i codon_1.0.0_arm64.deb  #安装
sudo dpkg -r codon #卸载,或者sudo dpkg -P codon

注意:
打包过程中,执行文件放入bin目录,usr的lib目录下放入so文件,同时在usr下拷贝stdlib目录

https://blog.csdn.net/qq_50998481/article/details/127788849