Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
safelinks-cleaner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
safelinks
safelinks-cleaner
Commits
1a2790f4
There was an error fetching the commit references. Please try again later.
Commit
1a2790f4
authored
4 years ago
by
David Byers
Browse files
Options
Downloads
Patches
Plain Diff
Fix build script.
parent
5deff271
No related branches found
No related tags found
1 merge request
!8
Beta
Pipeline
#33040
failed
4 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+4
-5
4 additions, 5 deletions
.gitlab-ci.yml
scripts/build.sh
+15
-5
15 additions, 5 deletions
scripts/build.sh
shared/manifest.part.json
+1
-1
1 addition, 1 deletion
shared/manifest.part.json
site/index.html
+4
-2
4 additions, 2 deletions
site/index.html
with
24 additions
and
13 deletions
.gitlab-ci.yml
+
4
−
5
View file @
1a2790f4
...
...
@@ -6,21 +6,20 @@ stages:
build
:
stage
:
build
script
:
-
cat /etc/issue
-
uname -a
-
apt-get -y update
-
apt-get -y install zip
-
cd extension
-
zip -r ../safelinks-cleaner-thunderbird.xpi *
-
bash scripts/build.sh
artifacts
:
paths
:
-
./safelinks-cleaner-thunderbird.xpi
-
./build/safelinks-cleaner-thunderbird.xpi
-
./build/safelinks-cleaner-firefox.xpi
pages
:
stage
:
deploy
script
:
-
cp -r site .public
-
cp safelinks-cleaner-thunderbird.xpi .public
-
cp safelinks-cleaner-firefox.xpi .public
-
mv .public public
-
ls -lr public
artifacts
:
...
...
This diff is collapsed.
Click to expand it.
scripts/build.sh
+
15
−
5
View file @
1a2790f4
#! /bin/bash
set
-eu
TARGETS
=(
thunderbird firefox
)
BASEDIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
>
/dev/null 2>&1
&&
pwd
)
"
BASEDIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
"
>
/dev/null 2>&1
&&
pwd
)
"
BUILDDIR
=
"
$BASEDIR
/build"
SHAREDDIR
=
"
$BASEDIR
/shared"
for
target
in
"
${
TARGETS
[@]
}
"
;
do
targetdir
=
"
$BUILDDIR
/
$target
"
sourcedir
=
"
$
basedir
/
$target
"
sourcedir
=
"
$
BASEDIR
/
$target
"
outputfile
=
"
$BUILDDIR
/safelinks-cleaner-
$target
.xpi"
echo
"[+] building target '
$target
'"
[
-d
"
$targetdir
"
]
&&
rm
-r
"
$targetdir
"
mkdir
-p
"
$targetdir
"
cp
-r
"
$SHAREDDIR
"
/
*
"
$sourcedir
"
/
*
"
$targetdir
"
cd
"
$targetdir
"
zip
-r
../
"
$outputfile
"
*
cp
-r
"
$SHAREDDIR
"
/
*
"
$targetdir
"
cp
-r
"
$sourcedir
"
/
*
"
$targetdir
"
rm
"
$targetdir
"
/manifest.part.json
python3
"
$BASEDIR
/scripts/makemanifest.py"
\
"
$SHAREDDIR
/manifest.part.json"
\
"
$sourcedir
/manifest.part.json"
\
>
"
$targetdir
/manifest.json"
(
cd
"
$targetdir
"
;
zip
-r
"
$outputfile
"
*
)
echo
"[-] output to '
$outputfile
'"
done
This diff is collapsed.
Click to expand it.
shared/manifest.part.json
+
1
−
1
View file @
1a2790f4
...
...
@@ -2,7 +2,7 @@
"manifest_version"
:
2
,
"name"
:
"ATP Safe Links Cleaner"
,
"description"
:
"__MSG_extensionDescription__"
,
"version"
:
"1.
3
"
,
"version"
:
"1.
4
"
,
"author"
:
"David Byers"
,
"homepage_url"
:
"https://gitlab.liu.se/safelinks/safelinks-cleaner/"
,
"default_locale"
:
"en"
,
...
...
This diff is collapsed.
Click to expand it.
site/index.html
+
4
−
2
View file @
1a2790f4
<html>
<head>
<title>
s
afe
l
inks
-c
leaner
-mailextension
</title>
<title>
S
afe
L
inks
C
leaner
</title>
</head>
<body>
<a
href=
"safelinks-cleaner-thunderbird.xpi"
>
Download latest version
</a>
<a
href=
"safelinks-cleaner-thunderbird.xpi"
>
Download latest version for thunderbird
</a>
<br
/>
<a
href=
"safelinks-cleaner-firefox.xpi"
>
Download latest version for firefox
</a>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment