
const baseUrl = process.env.VUE_APP_BASE_HOST
const folder = '/software/software'
const urls = {
    TXUOS_INTER:
        "/TXUOS/inter/signed_net.cnki.cajviewer_1.1.1-3_amd64.deb",
    TXUOS_FT: "/TXUOS/FT/signed_net.cnki.cajviewer_1.1.1-3_arm64.deb",
    TXUOS_LX3A4000:
        "/TXUOS/LX3A4000/signed_net.cnki.cajviewer_1.1.1-3_mips64.deb",
    TXUOS_LX3A5000:
        "/TXUOS/LX3A5000/signed_net.cnki.cajviewer_1.1.0-2_loongarch64.deb",
    TXUOS_KMSRMJCY:
        "/TXUOS/KMSRMJCY/signed_net.cnki.cajviewer_1.2.0-1_mips64.deb.deb",
    YHQL_INTER: "/YHQL/inter/cajviewer_1.1.1-3_amd64.deb",
    YHQL_FT: "/YHQL/FT/cajviewer_1.1.1-3_arm64.deb",
    YHQL_LX3A4000: "/YHQL/LX3A4000/cajviewer_1.1.1-3_mips64.deb",
    YHQL_LX3A5000:
        "/YHQL/LX3A5000/cajviewer_1.1.0-2_loongarch64.deb",
    ZKFD_SERVER: "/ZKFD/Server/cajviewer-1.1.1-3.nfs4.x86_64.rpm",
    ZKFD_CLIENT: "/ZKFD/Client/cajviewer_1.1.1-3_amd64.deb",
    WINDOWS_64: "/Windows/64/CAJViewer 8.1_x64-setup.exe",
    WINDOWS_32: "/Windows/32/CAJViewer8.0.1.1-setup.exe",
    JDBF: "/JDBF/CAJViewer-x86_64-1.1.1.AppImage",
}

const fullUrl = addBaseUrl(urls)

// 增加baseUrl
function addBaseUrl() {
    const newUrls = {}
    for (const key in urls) {
        newUrls[key] = baseUrl + folder + urls[key]
    }
    return newUrls
}

export default fullUrl