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

fix: reproducable builds #2809

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions create-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ cd dist/production
cd firefox
# Normalize timestamp to get reproducible zip file
find . -exec touch -t 200810310000 {} +
chmod 644 -R *

# Create zip file
zip -rX ../alby-firefox-v$VERSION.xpi *
Expand All @@ -52,6 +53,7 @@ echo "Created alby-firefox-v$VERSION.xpi (SHA512: $SHA)"
cd ../chrome
# Normalize timestamp to get reproducible zip file
find . -exec touch -t 200810310000 {} +
chmod 644 -R *

# Create zip file
zip -rX ../alby-chrome-v$VERSION.zip *
Expand All @@ -62,6 +64,7 @@ echo "Created alby-chrome-v$VERSION.zip (SHA512: $SHA)"
cd ../opera
# Normalize timestamp to get reproducible zip file
find . -exec touch -t 200810310000 {} +
chmod 644 -R *

# Create zip file
zip -rX ../alby-opera-v$VERSION.crx *
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,28 +267,28 @@ var options = {
template: path.join(viewsPath, "popup.html"),
inject: "body",
chunks: ["popup"],
hash: true,
hash: false,
filename: "popup.html",
}),
new HtmlWebpackPlugin({
template: path.join(viewsPath, "options.html"),
inject: "body",
chunks: ["options"],
hash: true,
hash: false,
filename: "options.html",
}),
new HtmlWebpackPlugin({
template: path.join(viewsPath, "prompt.html"),
inject: "body",
chunks: ["prompt"],
hash: true,
hash: false,
filename: "prompt.html",
}),
new HtmlWebpackPlugin({
template: path.join(viewsPath, "welcome.html"),
inject: "body",
chunks: ["welcome"],
hash: true,
hash: false,
filename: "welcome.html",
}),
// write css file(s) to build folder
Expand Down
Loading