mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
🐧 Add mkdeb task to create debian package.
This commit is contained in:
21
script/mkdeb
Executable file
21
script/mkdeb
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
# mkdeb version control-file-path
|
||||
|
||||
SCRIPT=`readlink -f "$0"`
|
||||
ROOT=`readlink -f $(dirname $SCRIPT)/..`
|
||||
cd $ROOT
|
||||
|
||||
VERSION="$1"
|
||||
CONTROL_FILE="$2"
|
||||
TARGET_ROOT="`mktemp -d`"
|
||||
TARGET="$TARGET_ROOT/atom-$VERSION"
|
||||
|
||||
mkdir -p "$TARGET/usr"
|
||||
env INSTALL_PREFIX="$TARGET/usr" script/grunt install
|
||||
|
||||
mkdir -p "$TARGET/DEBIAN"
|
||||
mv "$CONTROL_FILE" "$TARGET/DEBIAN/control"
|
||||
|
||||
dpkg-deb -b "$TARGET"
|
||||
mv "$TARGET_ROOT/atom-$VERSION.deb" /tmp/atom-build/
|
||||
rm -rf $TARGET_ROOT
|
||||
Reference in New Issue
Block a user