diff --git a/.gitignore b/.gitignore index 8b69396..63c6e2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. -release.zip +*.zip # dependencies /node_modules diff --git a/package.json b/package.json index 6fa260f..64ae3b3 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "start": "concurrently 'npm run start:py' 'npm run start:app'", "build": "npm run build:py && npm run build:app && npm run build:css", "archive": "cd build && zip -r ../release.zip .", - "archive_output": "cd build && zip -r ../release-$PLATFORM.zip .", + "release_platform": "npm run build && cd build && zip -r ../release-$PLATFORM.zip .", "release": "npm run build && npm run archive", "test": "react-scripts test", "lint": "npm run fix:ts", diff --git a/public/port-0.0.0-py3-none-any.whl b/public/port-0.0.0-py3-none-any.whl index 222a965..a3d6516 100644 Binary files a/public/port-0.0.0-py3-none-any.whl and b/public/port-0.0.0-py3-none-any.whl differ diff --git a/release-script.sh b/release-script.sh old mode 100644 new mode 100755 index 1274407..807e650 --- a/release-script.sh +++ b/release-script.sh @@ -1,10 +1,17 @@ #!/bin/bash -# release all individual platforms -script_location = ./src/framework/processing/py/port/script.py +# build release all individual platforms -all_platforms='platforms = \[ ("LinkedIn", extract_linkedin, linkedin.validate), ("Insta' -all_platforms_commented_out='#platforms = \[ ("LinkedIn", extract_linkedin, linkedin.validate), ("Insta' +script_location='./src/framework/processing/py/port/script.py' +single_platform='platforms = \[ ("' +single_platform_commented_out='#platforms = \[ ("' -# comment out all platforms in sequence -sed -i "s/$all_platforms/$all_platforms_commented_out/g" $script_location + +platforms=("LinkedIn" "Instagram" "Chrome" "Facebook" "Youtube" "TikTok" "Twitter") +platforms=("LinkedIn") + +for platform in "${platforms[@]}"; do + sed -i "s/$single_platform_commented_out$platform/$single_platform$platform/g" $script_location + PLATFORM=$platform npm run release_platform + git restore $script_location +done diff --git a/src/framework/processing/py/dist/port-0.0.0-py3-none-any.whl b/src/framework/processing/py/dist/port-0.0.0-py3-none-any.whl index 222a965..a3d6516 100644 Binary files a/src/framework/processing/py/dist/port-0.0.0-py3-none-any.whl and b/src/framework/processing/py/dist/port-0.0.0-py3-none-any.whl differ