HOW TO UPGRADE LEMMY

    mv lemmy lemmy-<old-version>
    git clone https://github.com/LemmyNet/lemmy.git lemmy
    cd lemmy
    git checkout <latest-version>
    E.g.
    git checkout 0.17.4

    git submodule init
    git submodule update --recursive --remote
    echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"
    cargo build --release
    strip target/release/lemmy_server

    cp target/release/lemmy_server /usr/bin/lemmy_server
  • KIM_JONG_JUICEBOX
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Why does ./src/shared/version.ts

    export const VERSION = "unknown version";
    

    Not display with “0.17.3” but displays with “v0.17.3” ? Is that intentional? Does the version number require it begins with an alphabetic character?

    I have not seen this on other instances, so I am just curious.