chore: improve naming of build scripts (#918)

- `darwin/configure-electron.sh` -> `darwin/electron-configure-package-darwin.sh`
- `darwin/installer-zip.sh` -> `darwin/electron-installer-app-zip.sh`
- `darwin/installer-dmg.sh` -> `darwin/electron-installer-dmg.sh`
- `darwin/sign.sh` -> `darwin/electron-sign-app.sh`
- `linux/configure-electron.sh` -> `linux/electron-configure-package-linux.sh`
- `linux/installer-appimage.sh` -> `linux/electron-installer-appimage.sh`
- `linux/installer-deb.sh` -> `linux/electron-installer-debian.sh`
- `unix/create-asar.sh` -> `unix/electron-create-asar.sh`
- `unix/create-electron-app.sh` -> `unix/electron-create-resources-app.sh`
- `unix/download-electron.sh` -> `unix/electron-download-package.sh`

Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2016-12-01 12:11:08 -04:00 committed by GitHub
parent 100ab79eab
commit 6f0fe93aad
12 changed files with 22 additions and 22 deletions

View File

@ -67,7 +67,7 @@ if [ "$COMMAND" == "develop-electron" ]; then
fi
if [ "$COMMAND" == "installer-dmg" ]; then
./scripts/unix/create-electron-app.sh \
./scripts/unix/electron-create-resources-app.sh \
-s . \
-f "lib,build,assets" \
-o "etcher-release/app"
@ -81,17 +81,17 @@ if [ "$COMMAND" == "installer-dmg" ]; then
./scripts/unix/dependencies-bower.sh -p \
-x "etcher-release/app"
./scripts/unix/create-asar.sh \
./scripts/unix/electron-create-asar.sh \
-d "etcher-release/app" \
-o "etcher-release/app.asar"
./scripts/unix/download-electron.sh \
./scripts/unix/electron-download-package.sh \
-r x64 \
-v "$ELECTRON_VERSION" \
-s darwin \
-o etcher-release/$APPLICATION_NAME-darwin-x64
./scripts/darwin/configure-electron.sh \
./scripts/darwin/electron-configure-package-darwin.sh \
-d etcher-release/$APPLICATION_NAME-darwin-x64 \
-n $APPLICATION_NAME \
-v $APPLICATION_VERSION \
@ -101,7 +101,7 @@ if [ "$COMMAND" == "installer-dmg" ]; then
-a "etcher-release/app.asar" \
-i assets/icon.icns
./scripts/darwin/installer-dmg.sh \
./scripts/darwin/electron-installer-dmg.sh \
-n $APPLICATION_NAME \
-v $APPLICATION_VERSION \
-p etcher-release/$APPLICATION_NAME-darwin-x64 \
@ -114,7 +114,7 @@ if [ "$COMMAND" == "installer-dmg" ]; then
fi
if [ "$COMMAND" == "installer-zip" ]; then
./scripts/unix/create-electron-app.sh \
./scripts/unix/electron-create-resources-app.sh \
-s . \
-f "lib,build,assets" \
-o "etcher-release/app"
@ -128,17 +128,17 @@ if [ "$COMMAND" == "installer-zip" ]; then
./scripts/unix/dependencies-bower.sh -p \
-x "etcher-release/app"
./scripts/unix/create-asar.sh \
./scripts/unix/electron-create-asar.sh \
-d "etcher-release/app" \
-o "etcher-release/app.asar"
./scripts/unix/download-electron.sh \
./scripts/unix/electron-download-package.sh \
-r x64 \
-v "$ELECTRON_VERSION" \
-s darwin \
-o etcher-release/$APPLICATION_NAME-darwin-x64
./scripts/darwin/configure-electron.sh \
./scripts/darwin/electron-configure-package-darwin.sh \
-d etcher-release/$APPLICATION_NAME-darwin-x64 \
-n $APPLICATION_NAME \
-v $APPLICATION_VERSION \
@ -148,11 +148,11 @@ if [ "$COMMAND" == "installer-zip" ]; then
-a "etcher-release/app.asar" \
-i assets/icon.icns
./scripts/darwin/sign.sh \
./scripts/darwin/electron-sign-app.sh \
-a etcher-release/$APPLICATION_NAME-darwin-x64/$APPLICATION_NAME.app \
-i "$SIGN_IDENTITY_OSX"
./scripts/darwin/installer-zip.sh \
./scripts/darwin/electron-installer-app-zip.sh \
-a etcher-release/$APPLICATION_NAME-darwin-x64/$APPLICATION_NAME.app \
-o etcher-release/installers/$APPLICATION_NAME-$APPLICATION_VERSION-darwin-x64.zip

View File

@ -87,7 +87,7 @@ if [ "$COMMAND" == "installer-cli" ]; then
fi
if [ "$COMMAND" == "installer-debian" ]; then
./scripts/unix/create-electron-app.sh \
./scripts/unix/electron-create-resources-app.sh \
-s . \
-f "lib,build,assets" \
-o "etcher-release/app"
@ -101,24 +101,24 @@ if [ "$COMMAND" == "installer-debian" ]; then
./scripts/unix/dependencies-bower.sh -p \
-x "etcher-release/app"
./scripts/unix/create-asar.sh \
./scripts/unix/electron-create-asar.sh \
-d "etcher-release/app" \
-o "etcher-release/app.asar"
./scripts/unix/download-electron.sh \
./scripts/unix/electron-download-package.sh \
-r "$ARCH" \
-v "$ELECTRON_VERSION" \
-s linux \
-o "etcher-release/$APPLICATION_NAME-linux-$ARCH"
./scripts/linux/configure-electron.sh \
./scripts/linux/electron-configure-package-linux.sh \
-d etcher-release/$APPLICATION_NAME-linux-$ARCH \
-n "$APPLICATION_NAME" \
-v "$APPLICATION_VERSION" \
-l LICENSE \
-a "etcher-release/app.asar"
./scripts/linux/installer-deb.sh \
./scripts/linux/electron-installer-debian.sh \
-p etcher-release/$APPLICATION_NAME-linux-$ARCH \
-r "$ARCH" \
-c scripts/build/debian/config.json \
@ -130,7 +130,7 @@ fi
if [ "$COMMAND" == "installer-appimage" ]; then
check_dep zip
./scripts/unix/create-electron-app.sh \
./scripts/unix/electron-create-resources-app.sh \
-s . \
-f "lib,build,assets" \
-o "etcher-release/app"
@ -144,24 +144,24 @@ if [ "$COMMAND" == "installer-appimage" ]; then
./scripts/unix/dependencies-bower.sh -p \
-x "etcher-release/app"
./scripts/unix/create-asar.sh \
./scripts/unix/electron-create-asar.sh \
-d "etcher-release/app" \
-o "etcher-release/app.asar"
./scripts/unix/download-electron.sh \
./scripts/unix/electron-download-package.sh \
-r "$ARCH" \
-v "$ELECTRON_VERSION" \
-s linux \
-o "etcher-release/$APPLICATION_NAME-linux-$ARCH"
./scripts/linux/configure-electron.sh \
./scripts/linux/electron-configure-package-linux.sh \
-d etcher-release/$APPLICATION_NAME-linux-$ARCH \
-n "$APPLICATION_NAME" \
-v "$APPLICATION_VERSION" \
-l LICENSE \
-a "etcher-release/app.asar"
./scripts/linux/installer-appimage.sh \
./scripts/linux/electron-installer-appimage.sh \
-n "$APPLICATION_NAME" \
-d "$APPLICATION_DESCRIPTION" \
-p etcher-release/$APPLICATION_NAME-linux-$ARCH \

View File

@ -160,7 +160,7 @@ sync
afsctool -ci -9 "$VOLUME_APPLICATION"
# TODO: this should be decoupled from this script
./scripts/darwin/sign.sh -a "$VOLUME_APPLICATION" -i "$ARGV_IDENTITY"
./scripts/darwin/electron-sign-app.sh -a "$VOLUME_APPLICATION" -i "$ARGV_IDENTITY"
# Unmount temporary DMG image.
hdiutil detach "$VOLUME_DIRECTORY"