Skip to content

Move static files out of distribution + add prepare script for Safari - #5491

Merged
fregante merged 8 commits into
mainfrom
webpack-safari
Mar 17, 2022
Merged

fregante merged 8 commits into
mainfrom
webpack-safari

Conversation

@fregante

Copy link
Copy Markdown
Member

@sindresorhus hopefully this means we'll see Safari updates more often 🙂

@fregante
fregante requested a review from sindresorhus March 13, 2022 08:32
Comment thread safari/Config.xcconfig
MARKETING_VERSION = 22.2.13
CURRENT_PROJECT_VERSION = 18
MARKETING_VERSION = 0.0.0
CURRENT_PROJECT_VERSION = 1

@fregante fregante Mar 13, 2022 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are placeholders just for Xcode (for new collaborators) and are not actually enough for the script to run. You'll have to copy them to your LocalOverrides file for the first time.

echo You’re ahead of the latest tag. Run:
echo git checkout "$TAG"
exit 1
fi

@fregante fregante Mar 13, 2022 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to ensure we don't get mismatched releases (e.g. "it's 22.3.3 but there are 3 more bugfixes")

If you need to make small changes, I think you'll be able to:

  1. check out the tag
  2. make the changes
  3. run this script
  4. then commit them on top of the latest commit

@fregante fregante added meta Related to Refined GitHub itself safari Related to Safari only labels Mar 13, 2022
Comment thread package.json Outdated
@@ -12,6 +12,7 @@
"lint:js": "xo",
"pack:safari": "xcodebuild -project 'safari/Refined GitHub.xcodeproj' -scheme 'Refined GitHub (macOS)'",
"start:safari": "open 'safari/build/Release/Refined GitHub.app'",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command is also broken since the iOS PR probably, we should drop it if there's no fix

Suggested change
"start:safari": "open 'safari/build/Release/Refined GitHub.app'",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's better to just build and run in Xcode.

@fregante fregante Mar 16, 2022 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point is that I try to avoid opening Xcode at all because I shouldn't have to deal with it. That's why there's a pack:safari script as well

fregante and others added 3 commits March 15, 2022 14:53
… I can't rely on ESLint for formatting anymore
Co-authored-by: Federico Brigante <[email protected]>
fregante added a commit to npmhub/npmhub that referenced this pull request Mar 17, 2022
fregante added a commit to fregante/GhostText that referenced this pull request Mar 17, 2022
fregante added a commit to fregante/GhostText that referenced this pull request Mar 17, 2022
@fregante
fregante merged commit 22d6470 into main Mar 17, 2022
@fregante
fregante deleted the webpack-safari branch March 17, 2022 05:11
@fregante

Copy link
Copy Markdown
Member Author

I tested this with two other extensions and it works flawlessly. I'll tag a new release today so @sindresorhus please try it soon. The other change I requested can come later as it's just a DX thing for local testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself safari Related to Safari only

Development

Successfully merging this pull request may close these issues.

Safari: Automate setting the current version in manifest.json

2 participants