Remove special case for matrix-analytics-events

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-web?expand=0&rev=40
This commit is contained in:
Dominik Heidler 2023-04-21 12:45:54 +00:00 committed by Git OBS Bridge
parent 8b093ea80a
commit 4d0a1023a1
3 changed files with 12 additions and 12 deletions

View File

@ -44,12 +44,12 @@ echo 'yarn-offline-mirror "./npm-packages-offline-cache"' > .yarnrc
ls -l ./npm-packages-offline-cache | head
# fix some strange dependency
cp npm-packages-offline-cache/matrix-analytics-events-0.0.1.tgz \
npm-packages-offline-cache/@matrix-analytics-events-0.0.1.tgz
ls -l ./npm-packages-offline-cache/*matrix-analytics-events*
#cp npm-packages-offline-cache/matrix-analytics-events-0.0.1.tgz \
# npm-packages-offline-cache/@matrix-analytics-events-0.0.1.tgz
#ls -l ./npm-packages-offline-cache/*matrix-analytics-events*
sed -i -e 's| matrix-analytics-events "github:matrix-org/matrix-analytics-events.git#[^"]*"| matrix-analytics-events "^0.0.1"|' yarn.lock
sed -i -e 's|"matrix-analytics-events@github:matrix-org/matrix-analytics-events#[^"]*"|matrix-analytics-events@^0.0.1|' yarn.lock
#sed -i -e 's| matrix-analytics-events "github:matrix-org/matrix-analytics-events.git#[^"]*"| matrix-analytics-events "^0.0.1"|' yarn.lock
#sed -i -e 's|"matrix-analytics-events@github:matrix-org/matrix-analytics-events#[^"]*"|matrix-analytics-events@^0.0.1|' yarn.lock
yarn install --offline --pure-lockfile

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ffd784a36e2f6b205f19077b74e43dd75802fc77328074c95c81a4940440be10
size 97105985
oid sha256:96c8a62b7990e7d956ab950af78f1ab74cf72887900418e6f5a74115510ce4db
size 97096106

View File

@ -28,11 +28,11 @@ yarn install --pure-lockfile --ignore-engines || : # this will download tha pack
# download some additional dependencie that slips through this earlier method
cd ./npm-packages-offline-cache/
wget -O matrix-analytics-events-0.0.1.tgz $(grep -m1 -A2 "@matrix.org/analytics-events" ../yarn.lock | grep resolved | awk '{print $NF}' | tr -d '"')
mkdir package
tar xvf matrix-analytics-events-0.0.1.tgz --strip-components=1 -C package/
tar czf matrix-analytics-events-0.0.1.tgz package/
rm -r package
#wget -O matrix-analytics-events-0.0.1.tgz $(grep -m1 -A2 "@matrix.org/analytics-events" ../yarn.lock | grep resolved | awk '{print $NF}' | tr -d '"')
#mkdir package
#tar xvf matrix-analytics-events-0.0.1.tgz --strip-components=1 -C package/
#tar czf matrix-analytics-events-0.0.1.tgz package/
#rm -r package
# fill sentry-cli cache with mock binaries for all architecutres
cd sentry-cli