Commit 0a3c6f2a authored by Chaoting Liu's avatar Chaoting Liu

atom: update to 1.28.1, revert all the npm fix

parent 2cac0d74
Pipeline #843 failed with stages
in 1 minute and 44 seconds
pkgname=atom
pkgver=1.28.0
pkgver=1.28.1
pkgrel=1
pkgdesc='A hackable text editor for the 21st Century'
arch=('x86_64')
......@@ -31,12 +31,14 @@ prepare() {
cd electron-link
git checkout v0.2.0
# FIXME: won't build if manually fix npm warnings
# npm audit fix, remove package-lock to apply the fix
sed -e 's/"leveldown": "^1.6.0"/"leveldown": "^2.0.1"/' \
-e 's/"electron": "1.7.10"/"electron": "^2.0.4"/' \
-e 's/"electron-mocha": "^3.3.0"/"electron-mocha": "^6.0.4"/' \
-e 's/"mocha": "^3.2.0"/"mocha": "^5.2.0"/' -i package.json
rm package-lock.json
#sed -e 's/"leveldown": "^1.6.0"/"leveldown": "^2.0.1"/' \
# -e 's/"electron": "1.7.10"/"electron": "^2.0.4"/' \
# -e 's/"electron-mocha": "^3.3.0"/"electron-mocha": "^6.0.4"/' \
# -e 's/"mocha": "^3.2.0"/"mocha": "^5.2.0"/' -i package.json
#rm package-lock.json
sed -e 's/"leveldown": "^1.6.0"/"leveldown": "^2.0.1"/' -i package.json
npm install
npx babel src -d lib
cd node_modules/levelup
......@@ -53,12 +55,13 @@ build() {
cd script
# FIXME: won't build if manually fix npm warnings
# npm audit fix
sed -e 's/"babel-core": "5.8.38"/"babel-core": "^6.26.3"/' \
-e 's/"coffeelint": "1.15.7"/"coffeelint": "^2.1.0"/' \
-e 's/"electron-packager": "7.3.0"/"electron-packager": "^12.1.0"/' \
-e 's/"npm": "5.3.0"/"npm": "^6.1.0"/' \
-e 's/"webdriverio": "2.4.5"/"webdriverio": "^4.13.1"/' -i package.json
#sed -e 's/"babel-core": "5.8.38"/"babel-core": "^6.26.3"/' \
# -e 's/"coffeelint": "1.15.7"/"coffeelint": "^2.1.0"/' \
# -e 's/"electron-packager": "7.3.0"/"electron-packager": "^12.1.0"/' \
# -e 's/"npm": "5.3.0"/"npm": "^6.1.0"/' \
# -e 's/"webdriverio": "2.4.5"/"webdriverio": "^4.13.1"/' -i package.json
npm install
./build
......@@ -94,7 +97,7 @@ package() {
node -e "require('./script/lib/get-license-text')().then((licenseText) => require('fs').writeFileSync('${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md', licenseText))"
# Remove useless stuff
find "${pkgdir}"/usr/lib/atom/node_modules \
find "${pkgdir}"/usr/share/atom/node_modules \
-name "*.a" -exec rm '{}' \; \
-or -name "*.bat" -exec rm '{}' \; \
-or -name "*.node" -exec chmod a-x '{}' \; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment