Skip to content

Commit

Permalink
feat: add Edge skeleton and TravisCI deployment config for Windo… (#156)
Browse files Browse the repository at this point in the history
feat: add Edge skeleton and TravisCI deployment config for Windows
  • Loading branch information
timbru31 committed Jul 24, 2019
2 parents f35d42a + 37900ea commit 85ff754
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 9,856 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ dist/
node_modules
.env
npm-debug.log
edge/Extension/
29 changes: 29 additions & 0 deletions .travis.yml
@@ -1,3 +1,32 @@
language: node_js
node_js:
- lts/*

matrix:
include:
- os: windows
env:
- DEPLOYMENT=TRUE
- TRAVIS_BUILD_PATH="C:\Users\travis\build\timbru31\amazon-tag-remover"
deploy:
provider: releases
api_key:
secure: ytS6KobiOOhd78JATaktj6OcV8dde8z9Gf0PDbLMwWS/usmxnwKzOwRNnveV8VFFqeEi4y6KQdxAFcd7m2WO2YOYCFPKZHqyc956qKHDZuIjD2/8PsTYb7iG8Z4VTTU7240dMCn0BEwILH5/GpjEykqvoVgBpFxsfid8svsuniWolwH69FxQ006jh6IJ/Mo6jyaEsDxF4dy4MLpmMFMp4xDKR8sqVGj5kb8+nCJn2qlvWetG5v/TE9yeMGXinZPs4VaY7YS1JjOj/Buc8Lfjy6lFfD5T32ywGVoepi3LgD634Ee+K5Oe64lauJrOaCB5HWbmBBE//Vr8hfIDIVeFaYI/x4Z1Xr6CHbP9PNQacFw+PZxC1WuwoiPjJIweU+N6foIyetshCJawxrkjkZ7Vb6VQbZ4rO8oRG1HcHgNSD2LBy8RdZj5t+XwzjsrPeT8mf3ARC2KQDgWYQv8ToV9O80RaeYtm1W5DWLUNsrSrWtdGqkEYnP4idHsaJnEUieZjkjdcyfcckQU0cOaW/RipdTl3j3HfwQuiuCsRVjuqlnJNghxKsrbu/mUHqFFDGqvUKW70u359Vs53KR/khXHCnaX6e6S+LC6ZnekUTmApYo6oS/Z1s+hYyOkTIMowNcbsFq4MsT8FXnxk0VJbV0uI+d2GnT7PaGiTJbDf2u+ALW0=
file: AmazonTagRemover.appx
skip_cleanup: true
on:
tags: true
- os: linux

script:
- npm test
- |
if [ ! -z "$TRAVIS_TAG" -a "$DEPLOYMENT" = "TRUE" ]; then
npm run build:prod
# No symlink support yet... https://travis-ci.community/t/git-symlinks-support/274
cd edge
mkdir Extension
cp -r ../dist/* Extension
cd ..
powershell -command "& 'C:\Program Files (x86)\Windows Kits\10\bin\x64\MakeAppx.exe' pack /d '$TRAVIS_BUILD_PATH\edge' /p '$TRAVIS_BUILD_PATH\AmazonTagRemover.appx'"
fi
41 changes: 41 additions & 0 deletions edge/AppXManifest.xml
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" IgnorableNamespaces="uap3">
<Identity Name="26440TimBrust.AmazonTagRemover" Publisher="CN=23B7F759-C54C-401E-B405-46568076E906" Version="0.5.2.0" />

<Properties>
<DisplayName>Amazon Tag Remover</DisplayName>
<PublisherDisplayName>Tim Brust</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>

<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14800.0" />
</Dependencies>

<Resources>
<Resource Language="en-us" />
</Resources>

<Applications>
<Application Id="App">
<uap:VisualElements AppListEntry="none" DisplayName="Amazon Tag Remover" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Remove the Amazon affiliate tracking ID (tag) from amazon links" BackgroundColor="white">
</uap:VisualElements>
<Extensions>
<uap3:Extension Category="windows.appExtension">
<uap3:AppExtension Name="com.microsoft.edge.extension" Id="EdgeExtension" PublicFolder="Extension" DisplayName="Amazon Tag Remover">
<uap3:Properties>
<Capabilities>
<Capability Name="websiteInfo"/>
<Capability Name="browserWebRequest"/>
<Capability Name="browserStorage"/>
<Capability Name="websiteContent"/>
</Capabilities>
</uap3:Properties>
</uap3:AppExtension>
</uap3:Extension>
</Extensions>
</Application>
</Applications>
</Package>
Binary file added edge/Assets/Square150x150Logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added edge/Assets/Square44x44Logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added edge/Assets/StoreLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/manifest.json
Expand Up @@ -12,7 +12,8 @@
"author": "Tim 'timbru31' Brust",
"description": "Remove the Amazon affiliate tracking ID (tag) from amazon links",
"background": {
"scripts": ["browser-polyfill.min.js", "background.js"]
"scripts": ["browser-polyfill.min.js", "background.js"],
"persistent": true
},
"options_ui": {
"chrome_style": true,
Expand Down

0 comments on commit 85ff754

Please sign in to comment.