Skip to content

Commit

Permalink
Merge pull request #3877 from vector-im/t3chguy/electron_install_fix
Browse files Browse the repository at this point in the history
move electron -> electron_app because npm smart
  • Loading branch information
dbkr authored May 10, 2017
2 parents 41738ec + c607b1b commit e67e891
Show file tree
Hide file tree
Showing 24 changed files with 17 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "riot-web",
"productName": "Riot",
"main": "electron/src/electron-main.js",
"main": "electron_app/src/electron-main.js",
"version": "0.9.9",
"description": "A feature-rich client for Matrix.org",
"author": "Vector Creations Ltd.",
Expand Down Expand Up @@ -165,9 +165,9 @@
"target": "squirrel"
},
"directories": {
"buildResources": "electron/build",
"output": "electron/dist",
"app": "electron"
"buildResources": "electron_app/build",
"output": "electron_app/dist",
"app": "electron_app"
}
}
}
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Script to perform a release of vector-web.
#
# Requires github-changelog-generator; to install, do
# Requires github-changelog-generator; to install, do
# pip install git+https://github.com/matrix-org/github-changelog-generator.git

set -e
Expand All @@ -15,7 +15,7 @@ release="${1#v}"
tag="v${release}"
echo "electron npm version"

cd electron
cd electron_app
npm version --no-git-tag-version "$release"
git commit package.json -m "$tag"

Expand Down
12 changes: 6 additions & 6 deletions scripts/electron-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ npm run build:electron

popd

distdir="$builddir/electron/dist"
pubdir="$projdir/electron/pub"
distdir="$builddir/electron_app/dist"
pubdir="$projdir/electron_app/pub"
rm -r "$pubdir" || true
mkdir -p "$pubdir"

Expand Down Expand Up @@ -120,11 +120,11 @@ cp $distdir/win/*.nupkg "$pubdir/update/win32/x64/"
cp $distdir/win/RELEASES "$pubdir/update/win32/x64/"

# Move the debs to the main project dir's dist folder
rm -r "$projdir/electron/dist" || true
mkdir -p "$projdir/electron/dist"
cp $distdir/*.deb "$projdir/electron/dist/"
rm -r "$projdir/electron_app/dist" || true
mkdir -p "$projdir/electron_app/dist"
cp $distdir/*.deb "$projdir/electron_app/dist/"

rm -rf "$builddir"

echo "Riot Desktop is ready to go in $pubdir: this directory can be hosted on your web server."
echo "deb archives are in electron/dist/ - these should be added into your debian repository"
echo "deb archives are in electron_app/dist/ - these should be added into your debian repository"
10 changes: 5 additions & 5 deletions scripts/make-icons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ cp "$tmpdir/256.png" "$tmpdir/Riot.iconset/icon_256x256.png"
cp "$tmpdir/512.png" "$tmpdir/Riot.iconset/[email protected]"
cp "$tmpdir/512.png" "$tmpdir/Riot.iconset/icon_512x512.png"
cp "$tmpdir/1024.png" "$tmpdir/Riot.iconset/[email protected]"
iconutil -c icns -o electron/build/icon.icns "$tmpdir/Riot.iconset"
iconutil -c icns -o electron_app/build/icon.icns "$tmpdir/Riot.iconset"

cp "$tmpdir/36.png" "res/vector-icons/android-chrome-36x36.png"
cp "$tmpdir/48.png" "res/vector-icons/android-chrome-48x48.png"
Expand All @@ -79,17 +79,17 @@ cp "$tmpdir/144.png" "res/vector-icons/mstile-144x144.png"
cp "$tmpdir/150.png" "res/vector-icons/mstile-150x150.png"
cp "$tmpdir/310.png" "res/vector-icons/mstile-310x310.png"
cp "$tmpdir/310x150.png" "res/vector-icons/mstile-310x150.png"
cp "$tmpdir/180.png" "electron/img/riot.png"
cp "$tmpdir/180.png" "electron_app/img/riot.png"

convert "$tmpdir/16.png" "$tmpdir/32.png" "$tmpdir/64.png" "$tmpdir/128.png" "$tmpdir/256.png" "res/vector-icons/favicon.ico"

cp "res/vector-icons/favicon.ico" "electron/build/icon.ico"
cp "res/vector-icons/favicon.ico" "electron/img/riot.ico"
cp "res/vector-icons/favicon.ico" "electron_app/build/icon.ico"
cp "res/vector-icons/favicon.ico" "electron_app/img/riot.ico"

# https://github.com/electron-userland/electron-builder/blob/3f97b86993d4ea5172e562b182230a194de0f621/src/targets/LinuxTargetHelper.ts#L127
for i in 24 96 16 48 64 128 256 512
do
cp "$tmpdir/$i.png" "electron/build/icons/${i}x${i}.png"
cp "$tmpdir/$i.png" "electron_app/build/icons/${i}x${i}.png"
done

rm -r "$tmpdir"

0 comments on commit e67e891

Please sign in to comment.