Package Details: armcord 3.2.7-2

Git Clone URL: https://aur.archlinux.org/armcord.git (read-only, click to copy)
Package Base: armcord
Description: A custom client designed to enhance your Discord experience while keeping everything lightweight.
Upstream URL: https://armcord.app/
Keywords: discord discord-client discord-mod discord-plugin discord-theme electron nodejs
Licenses: OSL-3.0
Conflicts: armcord
Submitter: zxp19821005
Maintainer: zxp19821005
Last Packager: zxp19821005
Votes: 1
Popularity: 0.48
First Submitted: 2023-08-26 09:15 (UTC)
Last Updated: 2024-05-24 02:37 (UTC)

Dependencies (7)

Required by (0)

Sources (2)

Latest Comments

1 2 Next › Last »

xiota commented on 2024-05-24 03:40 (UTC)

Same problem. Looks like package expects to be built from git checkout, not tarball. Adding following to put echo in front of git command allows build to continue:

sed -E -e 's&("prepare"): "&\1: "echo &' -i package.json

zxp19821005 commented on 2024-05-24 02:38 (UTC)

@xiota I've added package-manager-strict=false to .npmrc , and build sucessful.Will you please try again?

xiota commented on 2024-05-24 01:06 (UTC)

Clean chroot, fresh checkout of PKGBUILD. Same error as CodingKoopa, but setting the env variable leads to different error:

> ArmCord@3.2.7 prepare /home/main-builder/pkgwork/src/ArmCord-3.2.7
> git config --local core.hooksPath .hooks/

fatal: --local can only be used inside a git repository
 ELIFECYCLE  Command failed with exit code 128.

zxp19821005 commented on 2024-05-20 05:10 (UTC)

@CodingKoopa Thanks for your feedback, fixed it.

CodingKoopa commented on 2024-05-19 23:12 (UTC) (edited on 2024-05-19 23:12 (UTC) by CodingKoopa)

Thanks for the package! I came across a couple of issues while getting to this to build.

Firstly, I got this error when building:

  ERR_PNPM_BAD_PM_VERSION  This project is configured to use v8.10.2 of pnpm. Your current pnpm is v9.1.1

If you want to bypass this version check, you can set the "package-manager-strict" configuration to "false" or set the "COREPACK_ENABLE_STRICT" environment variable to "0"

I resolved this by adding export COREPACK_ENABLE_STRICT=0 to the list of exports in build().

Next, this seems to assume that the srcdir contains the PKGBUILD, which I believe is untrue if you have a custom BUILDDIR setup in your makepkg.conf. A couple of fixes are:

  • Generate the desktop entry ahead of time and leave it in this Git repo.
  • Add --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" to the end of the gendesk command, manually passing the PKGBUILD variables through. This is important so that the .desktop gets the right name.

zxp19821005 commented on 2023-10-26 01:07 (UTC)

@ryze312 Thank you,fixed it.

ryze312 commented on 2023-10-25 14:11 (UTC)

Hey, you might want to relocate where you copy app.asar. Right now in the PKGBUILD it gets installed to /opt/armcord, as per "Electron package guidelines" page it should be placed in /usr/share/armcord or /usr/lib/armcord if it's architecture dependent. See: https://wiki.archlinux.org/title/Electron_package_guidelines

zxp19821005 commented on 2023-09-19 01:21 (UTC)

@ptr1337 Maybe you have to check you network.

# zxp-endeavouros @ 3993EndeavourOS in ~/.cache/paru/clone/armcord on git:master o [9:18:40] 
$ makepkg -f
==> 正在创建软件包:armcord 3.2.4_e27-1 (2023年09月19日 星期二 09时18分56秒)
==> 正在检查运行时依赖关系...
==> 正在检查编译时依赖关系
==> 获取源代码...
  -> 正在下载 armcord-3.2.4_e27.tar.gz...
download from https://ghps.cc/https://github.com/ArmCord/ArmCord/archive/refs/tags/v3.2.4-e27.tar.gz\n
正在初始化下载:https://ghps.cc/https://github.com/ArmCord/ArmCord/archive/refs/tags/v3.2.4-e27.tar.gz
文件大小:不可用
正在打开输出文件 armcord-3.2.4_e27.tar.gz.part
服务器不支持,使用单个连接从头下载。
正在开始下载

连接 0 完成下载

已下载 1.06842 兆字节,用时 8 秒。(135.33 KB/s)
  -> 找到 armcord.sh
==> 正在验证 source 文件,使用sha256sums...
    armcord-3.2.4_e27.tar.gz ... 通过
    armcord.sh ... 通过
==> 正在释放源码...
  -> 正在解压缩 armcord-3.2.4_e27.tar.gz,使用 bsdtar
==> 正在开始 prepare()...
==> 正在开始 build()...
Lockfile is up to date, resolution step is skipped
Packages: +358
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 0, reused 347, downloaded 0, added 358, done

> ArmCord@3.2.4 prepare /home/zxp-endeavouros/.cache/paru/clone/armcord/src/ArmCord-3.2.4-e27
> git config --local core.hooksPath .hooks/

Done in 1s

> ArmCord@3.2.4 packageQuick /home/zxp-endeavouros/.cache/paru/clone/armcord/src/ArmCord-3.2.4-e27
> npm run build && electron-builder --dir


> ArmCord@3.2.4 build
> tsc && copyfiles -u 1 src/**/*.html src/**/**/*.css src/**/**/*.js ts-out/ && copyfiles package.json ts-out/ && copyfiles assets/**/** ts-out/

  • electron-builder  version=24.6.3 os=6.1.53-1-lts
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=linux arch=x64 electron=27.0.0-beta.2 appOutDir=dist/linux-unpacked
┌────────────────────────────────────────────┐
│ New version of electron-builder available! │
│ Current Version: 24.6.3                    │
│ Latest Version: 24.6.4                     │
└────────────────────────────────────────────┘
==> 正在进入 fakeroot 环境...
==> 正在开始 package()...
==> 正在清理安装...
  -> 正在删除 libtool 文件...
  -> 正在清除不打算要的文件...
  -> 正在移除静态库文件...
  -> 正在从二进制文件和库中清除不需要的系统符号...
  -> 正在压缩 man 及 info 文档...
==> 正在检查打包问题...
==> 正在构建软件包"armcord"...
  -> 正在生成 .PKGINFO 文件...
  -> 正在生成 .BUILDINFO 文件...
  -> 正在生成 .MTREE 文件...
  -> 正在压缩软件包...
==> 正在离开 fakeroot 环境。
==> 完成创建:armcord 3.2.4_e27-1 (2023年09月19日 星期二 09时19分12秒)

ptr1337 commented on 2023-09-18 07:36 (UTC)

Does not compile inside of a chroot:

==> Starting build()...
Progress: resolved 1, reused 0, downloaded 0, added 0

   ╭─────────────────────────────────────────────────────────────────╮
   │                                                                 │
   │                Update available! 8.6.0 → 8.7.6.                 │
   │   Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.7.6   │
   │                Run "pnpm add -g pnpm" to update.                │
   │                                                                 │
   │     Follow @pnpmjs for updates: https://twitter.com/pnpmjs      │
   │                                                                 │
   ╰─────────────────────────────────────────────────────────────────╯

Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /home/notroot/.local/share/pnpm/store/v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 18, reused 0, downloaded 18, added 0
Progress: resolved 237, reused 0, downloaded 236, added 0
Progress: resolved 355, reused 0, downloaded 352, added 0

Packages: +358
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
node_modules/electron postinstall$ node install.js
Progress: resolved 360, reused 0, downloaded 358, added 358, done
node_modules/electron postinstall: Done

> ArmCord@3.2.4 prepare /tmp/pkg/src/ArmCord-3.2.4-e27
> git config --local core.hooksPath .hooks/

fatal: --local can only be used inside a git repository
 ELIFECYCLE  Command failed with exit code 128.

zxp19821005 commented on 2023-08-29 05:31 (UTC)

@Sir-Photch Thank you,added it,