Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved media sending #2675

Closed
smashah opened this issue Apr 23, 2022 · 4 comments
Closed

Improved media sending #2675

smashah opened this issue Apr 23, 2022 · 4 comments
Labels
PRIORITY Fast track for BMAC Members only.

Comments

@smashah
Copy link
Member

smashah commented Apr 23, 2022

50mb chunks!!

@owa-gh-bot owa-gh-bot bot added the PRIORITY Fast track for BMAC Members only. label Apr 23, 2022
@smashah
Copy link
Member Author

smashah commented Nov 14, 2022

bump

@smashah smashah changed the title Browser to node file tunnel Improved media sending Nov 15, 2022
@smashah
Copy link
Member Author

smashah commented Nov 15, 2022

Changes:

 /**
     * TODO: File upload improvements
     * 1. *Create an arbitrary file input element
     * 2. *Take the file parameter and create a tempfile in temp dir
     * 3. Forward the tempfile path to the file input, upload the file to the browser context.
     * 4. Instruct the WAPI.sendImage function to consume the file from the element in step 1.
     * 5. *Destroy the input element from the page (happens in wapi.sendimage)
     * 6. *Unlink/rm the tempfile
     * 7. Return the ID of the WAPI.sendImage function.
     */

@smashah
Copy link
Member Author

smashah commented Nov 15, 2022

@github-actions run

⚡ Release! ⚡
(async () => {
function exec(cmd) {
  console.log(execSync(cmd).toString());
}
//set the version type
process.env.VERS = "minor"

// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";

exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci $VERS`);

// types only package
exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN')
exec(`cd ./types-only && npm version $VERS && npm run build && npm publish && cd ..`);
exec(`git commit -a -m 'updated types-only package'`);
exec(`git push --force`);

//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();

    await postComment(result);

//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
  })();

@smashah
Copy link
Member Author

smashah commented Nov 15, 2022

@github-actions run

⚡ Release! ⚡
(async () => {
function exec(cmd) {
  console.log(execSync(cmd).toString());
}
//set the version type
process.env.VERS = "patch"

// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";

exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci $VERS`);

// types only package
exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN')
exec(`cd ./types-only && npm version $VERS && npm run build && npm publish && cd ..`);
exec(`git commit -a -m 'updated types-only package'`);
exec(`git push --force`);

//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();

    await postComment(result);

//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
  })();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PRIORITY Fast track for BMAC Members only.
Projects
None yet
Development

No branches or pull requests

1 participant