If you use Maven, you can the maven-replacer-plugin to automate the
version/timestamp/build/etc for every build. One could also filter out things
such unwanted files like .DS_Store with other plugins.
For instance:
. . .
${maven.build.timestamp}
. . .
I found this VS Code extension:
https://marketplace.visualstudio.com/items?itemName=adrianwilczynski.terminal-commands
With this I'm writing a script, so then after build-release, right-click on
the release folder to clean files and inject the version.
Hugo Ferreira escreveu no dia sexta, 10/03/2
Thank you all.
You all gave me greate ideas.
Josh, no need to spend time on this.
I will create my own script (remove the .DS files is also a good idea - I
hate the mac pollute all my folders with that).
Harbs escreveu no dia quinta, 9/03/2023 à(s) 21:56:
> Yes. My script also has some "aws s3 s
Yes. My script also has some "aws s3 sync", "aws s3 cp” and "aws cloudfront
create-invalidation” commands to upload the app after updating the version info.
The sync commands (for the whole release directory has these arguments:
--exclude "*.DS_Store*" --delete --cache-control max-age=2592000 -
I think some JS bundling tools generate a short hash (like SHA or MD5)
based on the contents of the file. Just a possible alternative to using a
version string. The Royale compiler doesn't support doing anything like
that automatically, but I don't see why you couldn't write a shell script
to run a
Thank you.
OK, after you build-release you run a script that does exactly that.
Harbs escreveu no dia quinta, 9/03/2023 à(s) 21:37:
> I have a bash script to stage my app that looks like this:
>
> version=$(cat $DIR/releases.json | jq '.version')
> version="${version%\"}"
> version="${version#\
I have a bash script to stage my app that looks like this:
version=$(cat $DIR/releases.json | jq '.version')
version="${version%\"}"
version="${version#\"}"
build=$(node -e 'console.log(Date.now())')
jq '.build = '$build releases.json > tmp.$$.json && mv tmp.$$.json releases.json
sed -ie "s/MyAp
Hi,
I'm releasing now updates more often and sometimes (many times), the
browser cache my App.js
In a quick google search I found a solution (more a workaround) =>
https://stackoverflow.com/questions/1011605/clear-the-cache-in-javascript
When I build - release with VS Code, it inject this line on