mingxiaoyu / package-flippy-openwrt

Apache License 2.0
6 stars 8 forks source link

+版打包不成功 #3

Closed doctor-design closed 3 years ago

doctor-design commented 3 years ago

/usr/bin/sudo chmod -R 777 /opt/openwrt /usr/bin/sudo mkdir -p /upload /usr/bin/sudo chmod -R 777 /upload {"devices":"s905d","openwrt_version":"R21.6.22","kernel_version":"5.12.13-flippy-61","whoami":"doctor","out":"/upload","openwrt_path":"$GITHUB_WORKSPACE/openwrt/bin/targets//","openwrt_url":"","sub_name":"mini"} } /usr/bin/sudo ./mk_s905d_n1.sh /opt/kernel/modules-5.12.13-flippy-61.tar.gz not exists! (node:2353739) UnhandledPromiseRejectionWarning: Error: The process '/usr/bin/sudo' failed with exit code 1 at ExecState._setResult (/home/runner/work/_actions/mingxiaoyu/package-flippy-openwrt/main/dist/index.js:950:25) at ExecState.CheckComplete (/home/runner/work/_actions/mingxiaoyu/package-flippy-openwrt/main/dist/index.js:933:18) at ChildProcess. (/home/runner/work/_actions/mingxiaoyu/package-flippy-openwrt/main/dist/index.js:827:27) at ChildProcess.emit (events.js:210:5) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) (node:2353739) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:2353739) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

mingxiaoyu commented 3 years ago

内核参数: 5.12.13-flippy-61+

bash 版 ,参考这个修改 : https://github.com/mingxiaoyu/package-flippy-openwrt/blob/main/make.sh

get_kernel(){ KERNEL_FOLDER_NAME=$(echo ${KERNEL_VERSION/+o/-o}) KERNEL_FOLDER_NAME=$(echo ${KERNEL_FOLDER_NAME} | sed 's/+//g') svn co ${KERNEL_URL}/${KERNEL_FOLDER_NAME}/kernel >/dev/null 2>&1 cp -r kernel/* /opt/kernel }

nodejs 版测试OK