Skip to content

Commit

Permalink
Listing (#22)
Browse files Browse the repository at this point in the history
- Add listing images for Word and PowerPoint.
  • Loading branch information
wandyezj authored Apr 9, 2024
1 parent 359a6c8 commit a58d8ea
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 3 deletions.
21 changes: 21 additions & 0 deletions listing/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# README

Information needed for the store listing.

[Publish Dashboard](https://partner.microsoft.com/en-us/dashboard/marketplace-offers/overview)

## Creating Snapshots

- Clear Add-In Cache:
- File -> Options -> Trust Center
- Trust Center Settings
- Trusted Add-in Catalogs
- Check: `Next time Office starts, clear all previous-started we add-ins cache`
- Sideload the manifest.
- Arrange the image:
- Edit pane
- Run pane
- Use snipping tool to capture the image.
- Take a full shot of the screen.
- Save the image over the existing host taskpane image.
- crop the images
> npm run crop
- Check the images look good.
- Check the images are the correct width and height.
19 changes: 16 additions & 3 deletions listing/crop.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,25 @@ set width=1366
set height=768

:: save over the original image and them crop.
set image_name_in=excel-taskpane-%width%-%height%.png
set image_name_out=excel-taskpane-%width%-%height%.png

call :crop excel
call :crop powerpoint
call :crop word

goto :eof

:crop
set name=%1
echo.
echo Crop %name%
set image_name_in=%name%-taskpane-%width%-%height%.png
set image_name_out=%name%-taskpane-%width%-%height%.png

set image_in=%THISDIR%\%image_name_in%
set image_out=%THISDIR%\%image_name_out%

set command=%magick% %image_in% -crop %width%x%height%+0+0 %image_out%
echo %command%
call %command%
call %command%
goto :eof

Binary file modified listing/excel-taskpane-1366-768.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added listing/powerpoint-taskpane-1366-768.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added listing/word-taskpane-1366-768.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a58d8ea

Please sign in to comment.