Skip to content

Commit

Permalink
Fix release scripts (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez authored Sep 27, 2023
1 parent 6f60893 commit 5a8080f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion scripts/release-rust-ver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR && cd ..
SRC_DIR=$(pwd)
source typescript/package.prod.sh
cd $SRC_DIR

cargo publish --dry-run -p freenet-macros || { exit 1; }
Expand Down
8 changes: 4 additions & 4 deletions typescript/package.dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ set -e
npm install --save-dev .
npm run test
npm run build
if [ "$1"="dev" ]; then
if [ "$1" = "dev" ]; then
PKG_DIR=$SCRIPT_DIR/dist/pack
IS_DEV=1
else
PKG_DIR=${1:-$(mktemp -d)}
fi
mkdir -p $PKG_DIR
PKG_DIR="$1"
echo "Package dir: $PKG_DIR"
fi
mkdir -p $PKG_DIR
cd $PKG_DIR
cp -r $SCRIPT_DIR/dist/src/* $PKG_DIR
cp $SCRIPT_DIR/README.md $SCRIPT_DIR/package.json $PKG_DIR
Expand Down
2 changes: 1 addition & 1 deletion typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@freenetorg/freenet-stdlib",
"version": "0.0.7",
"version": "0.0.8",
"description": "Freenet standard library and utils",
"main": "src/index.ts",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions typescript/package.prod.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
PKG_DIR=$(mktemp -d)
source ./package.dev.sh $PKG_DIR
./package.dev.sh "$PKG_DIR"
echo "Packages at $PKG_DIR"
OUTPUT=$(find . -type f -name '*.tgz')
OUTPUT=$(find $PKG_DIR -type f -name '*.tgz')
echo "Publishing $OUTPUT ..."
read -p "Proceed publishing? " -n 1 -r
echo
Expand Down

0 comments on commit 5a8080f

Please sign in to comment.