Commit Graph

2117 Commits

Author SHA1 Message Date
DeeDeeG
f21824e730 script: Use process.exit() in renaming script
Gets rid of a lot of if-else that made the code harder to follow.

This should be pretty safe and unproblematic in a standalone script
like this, versus some more complex or nested Node process scenario,
or scenarios with async input/output that might be ongoing
when the process.exit() is handled.

Also, update some of the code comments a bit.

Co-authored-by: Andrew Dupont <github@andrewdupont.net>
2023-08-29 22:48:43 -04:00
DeeDeeG
5ecd2b8475 Merge branch 'master' into auto-rename-binaries-in-CI-for-Regular-releases 2023-08-29 22:28:06 -04:00
confused-Techie
0d01129459 Use special token instead of action permissions 2023-08-28 20:42:30 -07:00
DeeDeeG
c4a2d9d06c CI: New Rolling release upload token for Cirrus
Add a new token that can upload Rolling release binaries from Cirrus
to GitHub Releases for the Rolling repo.

Prefer this token in the upload script if it is set in the
corresponding env var ROLLING_UPLOAD_TOKEN, otherwise try GITHUB_TOKEN
(This allows the script to work in Cirrus, where the new env var will
be set, and in GitHub Actions where we use the GITHUB_TOKEN.)

(Testing to see if this can be set per-script, otherwise we will have
to set it for the whole task instead.)
2023-08-28 03:49:15 -04:00
confused-Techie
fd8b05b724 Use callback instead of async 2023-08-27 23:58:40 -07:00
confused-Techie
63efba6e45 Better logging, and error handling in script 2023-08-27 23:00:54 -07:00
confused-Techie
3de1f29f90 Use CIRRUS_CRON instead 2023-08-27 22:27:24 -07:00
confused-Techie
503fda3dcb Inverted logic of length check 2023-08-27 22:26:08 -07:00
confused-Techie
d57cac2668 Switch style of file loop 2023-08-27 21:05:40 -07:00
confused-Techie
19e36ad43e pack => packageJson 2023-08-27 21:04:16 -07:00
confused-Techie
1a6e20fb70 Export path on silicon to ensure we can use npm 2023-08-27 20:47:35 -07:00
confused-Techie
e18e8628d0 Ensure cirrus scripts don't upload rolling release on pr or commit builds 2023-08-27 20:42:50 -07:00
confused-Techie
96f9f91c0a Add rolling release script usage to CirrusCI 2023-08-27 20:20:38 -07:00
confused-Techie
ac4bcca7e1 Add automatic upload of binaries for push events
This script should upload any binaries it has to the `pulsar-rolling-releases` repo
2023-08-27 01:38:22 -07:00
DeeDeeG
d11f5238c9 script: Add basic error handling in CI binary renaming script
Throw literally the entire script into a try/catch.

This script should exit "cleanly" no matter what,
and avoid erroring out the overall CI run at all costs.

(This script is run on a best-effort basis, and should first do no
harm, since the automation it provides is easy to replicate manually.)
2023-08-16 19:19:07 -04:00
DeeDeeG
cfb9436484 script: Update version string check for binary renaming script
Need to check this way, since the CI script already modifies
the version string to end in something like "2023081600", not "-dev",
for Rolling releases (or for all builds other than Regular releases).

Also: Update and add more logging of what the script is doing.

Also also: Fix some spaces --> tabs on a couple of lines.
2023-08-15 21:59:34 -04:00
DeeDeeG
0dac1e514d CI: Automatically rename binaries for Regular releases
Adds a renaming script to rename the binaries with our
Regular release naming scheme, and updates the Cirrus config
to run said renaming script.

De-facto codifies our existing, officially unofficial naming scheme
with a bit of automation.

We can always revise this down the line
if consensus changes for how to name these files.

Just a little institutional knowledge to unburden team members with,
via the (sometimes double-edged sword...) of automation.
2023-08-15 20:28:18 -04:00
confused-Techie
1c3fb0bb24 Handle PATH, InstallLocation, and ATOM_HOME 2023-06-20 21:46:58 -07:00
confused-Techie
8bbdf1b0f6 Add hardcoded GUID, and comments about reasoning 2023-05-29 15:54:45 -07:00
Daeraxa
640b108b42
Add fpm option 2023-04-20 16:07:54 +01:00
confused-Techie
39761f0c0c Check instead for process.arch to optionally apply entitlements
Co-Authored-By: Maurício Szabo <mauricioszabo@users.noreply.github.com>
2023-04-10 17:58:28 -07:00
confused-Techie
b7195f9990 Add entitlements monkey-patch 2023-04-10 15:32:37 -07:00
Maurício Szabo
4f84c26732
Revert "[skip ci] Create i18n API" 2023-04-06 16:44:38 -03:00
Maurício Szabo
43764b8b4c
Merge pull request #463 from pulsar-edit/build-and-test
Build first, and test later
2023-04-06 11:06:35 -03:00
Maurício Szabo
a0f10d91d6 Seems that ZIP is just broken on CI anyway 2023-04-04 19:46:46 -03:00
Maurício Szabo
9003fc2be5 Making portable a ZIP 2023-04-04 16:42:25 -03:00
Maurício Szabo
9395f803fd Another wrong config... 2023-04-04 11:44:09 -03:00
Maurício Szabo
eafa4d3b66 Nothing ever works on the 10th try on CIs... 2023-04-04 02:26:39 -03:00
Maurício Szabo
2fd060c98c Another try on debugging builds 2023-04-04 00:59:17 -03:00
Maurício Szabo
ef882d5114 Of course, the docs are wrong... 2023-04-04 00:57:30 -03:00
Maurício Szabo
1c4611896a Trying again a Windows Portable ZIP 2023-04-04 00:44:28 -03:00
Maurício Szabo
72a28184a8
Back to 7zip for now... 2023-04-03 22:58:34 -03:00
Maurício Szabo
636d31d342 Fix windows config 2023-04-03 20:29:58 -03:00
Maurício Szabo
42f40b4aeb Trying to use ZIP for portable Windows 2023-04-03 20:16:55 -03:00
Meadowsys
bd284b3fab
include i18n dir in the built app 2023-03-26 18:49:07 -07:00
Meadowsys
1304373fb5
implement signing (monterey, xcode 14) 2023-02-15 17:57:27 -08:00
confused_techie
d0b9e7e65f
Merge pull request #372 from mdibella-dev/add-new-macos-icon
Add new macOS icon
2023-02-12 01:19:25 -08:00
Marco Di Bella
7ef8ddf143
Update script/electron-builder.js
Co-authored-by: Maurício Szabo <mauricioszabo@users.noreply.github.com>
2023-02-11 09:37:33 +01:00
DeeDeeG
5320aff661
Merge pull request #354 from Daeraxa/resource-licensemd
Add LICENSE.md to extra resources (resourcesPath)
2023-02-06 20:08:40 -05:00
confused_techie
548e58abaf
Merge pull request #340 from pulsar-edit/ct-windows-cli
Get Windows `pulsar` Working
2023-02-06 16:39:26 -08:00
Marco Di Bella
297b130648 Update electron-builder.js 2023-02-05 18:01:36 +01:00
Marco Di Bella
61e26c5f1e Update electron-builder.js 2023-02-05 17:49:02 +01:00
Daeraxa
2d8d02f2ec add LICENSE.md to extra resources 2023-01-28 19:12:25 +00:00
Maurício Szabo
ecb27d5797
Merge pull request #307 from pulsar-edit/organize-failing-tests
Organize failing tests
2023-01-27 20:58:10 -03:00
confused-Techie
d5c427a924 Pack properly in electron-builder & Script to find EXE 2023-01-23 22:03:27 -08:00
Marco Di Bella
81f35b6633 Replace incorrect spellings of 'macOS' with the correct one 2023-01-19 18:54:05 +01:00
Maurício Szabo
114f2975e4 Merge remote-tracking branch 'origin/master' into organize-failing-tests 2023-01-10 20:35:37 -03:00
Digitalone
725201f7a4 add comments to explain new linux properties 2023-01-10 17:44:02 +01:00
Digitalone
db6bcc1733 Merge remote-tracking branch 'upstream/master' into fix-linux-icon 2023-01-10 14:09:40 +01:00
DeeDeeG
50a6e6cf60
Merge pull request #297 from pulsar-edit/Linux-clean-up-pulsar-and-ppm-bins-on-uninstall
script: Clean up `pulsar` and `ppm` on uninstall
2023-01-09 17:27:19 -05:00