Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

electron-builder-binaries镜像失效 #1539

Closed
cnpm/mirrors
#243
@tomriddly

Description

@tomriddly

根据官网提示,electron-builder应该使用如下配置
ELECTRON_BUILDER_BINARIES_MIRROR=http://npm.taobao.org/mirrors/electron-builder-binaries/ electron-builder build
image
然而下载全部提示404,直接访问发现里面全是空的
image

Activity

reaink

reaink commented on Jan 5, 2020

@reaink

克隆也失败了,希望解决这个问题 😢

Airkro

Airkro commented on Feb 21, 2020

@Airkro

目录为空

Azimiao

Azimiao commented on Apr 25, 2020

@Azimiao

失效+1

Matrixbirds

Matrixbirds commented on Apr 26, 2020

@Matrixbirds

失效+2 理论上应该用https才对

changed the title [-]electron-builder镜像失效[/-] [+]electron-builder-binaries镜像失效[/+] on Apr 26, 2020
fengmk2

fengmk2 commented on Apr 26, 2020

@fengmk2
Member

@tomriddly 你的环境变量写错了吧,我按官方的文档测试是可以的

ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ electron-builder

image

fengmk2

fengmk2 commented on Apr 26, 2020

@fengmk2
Member

use ELECTRON_MIRROR instead of ELECTRON_BUILDER_BINARIES_MIRROR

tomriddly

tomriddly commented on Apr 26, 2020

@tomriddly
Author

@tomriddly 你的环境变量写错了吧,我按官方的文档测试是可以的

ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ electron-builder

image

编译本平台只需要MIRROR这个,编译其他平台要下载相应的binaries,这俩不是一个,可以仔细看下官网和截图

fengmk2

fengmk2 commented on Apr 26, 2020

@fengmk2
Member

都配置到一个 url 下,不过需要将 winCodeSign 等都同步掉。

ELECTRON_BUILDER_BINARIES_MIRROR=https://npm.taobao.org/mirrors/electron/ ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ electron-builder --win

image

fengmk2

fengmk2 commented on Apr 26, 2020

@fengmk2
Member

@tomriddly 你的环境变量写错了吧,我按官方的文档测试是可以的

ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ electron-builder

image

编译本平台只需要MIRROR这个,编译其他平台要下载相应的binaries,这俩不是一个,可以仔细看下官网和截图

主要你正文没有提到跨平台编译,所以我只写了一种。跨平台编译本身就是一件复杂的事情。

tomriddly

tomriddly commented on Apr 26, 2020

@tomriddly
Author

都配置到一个 url 下,不过需要将 winCodeSign 等都同步掉。

ELECTRON_BUILDER_BINARIES_MIRROR=https://npm.taobao.org/mirrors/electron/ ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ electron-builder --win

image

本身就是需要从这个镜像里面获取winCodeSign这些东西,我看你这个截图没有这些东西,包括我实验也是不成功的。


跨平台编译也只是需要这一个配置而已啊……应该不会特别复杂吧。。。。

fengmk2

fengmk2 commented on Apr 26, 2020

@fengmk2
Member

已经同步好了。

ELECTRON_BUILDER_BINARIES_MIRROR=https://npm.taobao.org/mirrors/electron-builder-binaries/ ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ ./node_modules/.bin/electron-builder --linux

ELECTRON_BUILDER_BINARIES_MIRROR=https://npm.taobao.org/mirrors/electron-builder-binaries/ ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ ./node_modules/.bin/electron-builder --win

image

tomriddly

tomriddly commented on Apr 26, 2020

@tomriddly
Author

@fengmk2 牛逼!o( ̄▽ ̄)d

Matrixbirds

Matrixbirds commented on Apr 26, 2020

@Matrixbirds

@fengmk2 牛逼!o( ̄▽ ̄)d

ytfrdfiw

ytfrdfiw commented on Jan 6, 2021

@ytfrdfiw

现在应该是可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @fengmk2@alsotang@Matrixbirds@ytfrdfiw@Azimiao

      Issue actions

        electron-builder-binaries镜像失效 · Issue #1539 · cnpm/cnpmjs.org