Giter Club home page Giter Club logo

Comments (4)

PikuZheng avatar PikuZheng commented on June 11, 2024

建议到脚本那边问。
我是这么干的 https://github.com/PikuZheng/smartdns/wiki/%E9%80%9A%E8%BF%87%E4%BD%BF%E7%94%A8%E6%9C%AC%E5%9C%B0%E6%BA%90%E7%9A%84%E6%96%B9%E6%B3%95%E4%B8%BA%E5%B0%86smartdns%E9%9B%86%E6%88%90%E5%88%B0openwrt%E5%9B%BA%E4%BB%B6%E5%86%85

from smartdns.

PikuZheng avatar PikuZheng commented on June 11, 2024

curl -s -L --retry 6 https://github.com/pymumu/openwrt-smartdns/archive/master.zip -o $WORKINGDIR/master.zip
unzip $WORKINGDIR/master.zip -d $WORKINGDIR

这是另一个项目啊 它写死了程序版本是1.2023.42 https://github.com/pymumu/openwrt-smartdns/blob/476046c91e100a57f1d88b25ebbd1f32c064b59c/Makefile#L9 所以实际编译出来的 也不知道到底是哪个版本了(只不过版本号是1.2023.42

from smartdns.

smdx avatar smdx commented on June 11, 2024

curl -s -L --retry 6 https://github.com/pymumu/openwrt-smartdns/archive/master.zip -o $WORKINGDIR/master.zip
unzip $WORKINGDIR/master.zip -d $WORKINGDIR

这是另一个项目啊 它写死了程序版本是1.2023.42 https://github.com/pymumu/openwrt-smartdns/blob/476046c91e100a57f1d88b25ebbd1f32c064b59c/Makefile#L9 所以实际编译出来的 也不知道到底是哪个版本了(只不过版本号是1.2023.42

脚本是在luci-app-smartdns仓库抄的,看来用错脚本了 😥

from smartdns.

smdx avatar smdx commented on June 11, 2024
    WORKINGDIR="$GITHUB_WORKSPACE/openwrt/feeds/packages/net/smartdns"
    mkdir $WORKINGDIR -p
    rm $WORKINGDIR/* -fr
    curl -s -L --retry 6 https://github.com/pymumu/smartdns/archive/master.zip -o $WORKINGDIR/master.zip
    unzip $WORKINGDIR/master.zip -d $WORKINGDIR
    mv $WORKINGDIR/smartdns-master/* $WORKINGDIR/
    rmdir $WORKINGDIR/smartdns-master
    rm $WORKINGDIR/master.zip
    LUCIBRANCH="lede"
    WORKINGDIR="$GITHUB_WORKSPACE/openwrt/feeds/luci/applications/luci-app-smartdns"
    mkdir $WORKINGDIR -p
    rm $WORKINGDIR/* -fr
    curl -s -L --retry 6 https://github.com/pymumu/luci-app-smartdns/archive/${LUCIBRANCH}.zip -o $WORKINGDIR/${LUCIBRANCH}.zip
    unzip $WORKINGDIR/${LUCIBRANCH}.zip -d $WORKINGDIR
    mv $WORKINGDIR/luci-app-smartdns-${LUCIBRANCH}/* $WORKINGDIR/
    rmdir $WORKINGDIR/luci-app-smartdns-${LUCIBRANCH}
    rm $WORKINGDIR/${LUCIBRANCH}.zip

修改后在云编译时出错,在openwrt测试脚本提示
rmdir: '/root/openwrt/feeds/packages/net/smartdns/smartdns-master': Directory not empty
好像有几个隐藏的文件没移动到目标目录

from smartdns.

Related Issues (20)

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.